Skip to content

Commit 5dd40e7

Browse files
authored
Call FillOutputs in AWS Follow (#863)
1 parent f1fdd8f commit 5dd40e7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/pkg/cli/client/byoc/aws/byoc.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,11 @@ func (b *ByocAws) Query(ctx context.Context, req *defangv1.DebugRequest) error {
696696
}
697697

698698
func (b *ByocAws) Follow(ctx context.Context, req *defangv1.TailRequest) (client.ServerStream[defangv1.TailResponse], error) {
699+
// FillOutputs is needed to get the CD task ARN
700+
if err := b.driver.FillOutputs(ctx); err != nil {
701+
return nil, AnnotateAwsError(err)
702+
}
703+
699704
etag := req.Etag
700705
// if etag == "" && req.Service == "cd" {
701706
// etag = awsecs.GetTaskID(b.cdTaskArn); TODO: find the last CD task

src/pkg/clouds/aws/ecs/common.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ func (a *AwsEcs) GetVpcID() string {
5656
}
5757

5858
func (a *AwsEcs) getAccountID() string {
59+
// TaskDefARN was set by a call to FillOutputs
5960
return aws.GetAccountID(a.TaskDefARN)
6061
}
6162

0 commit comments

Comments
 (0)