From c4ca781abd8765f7b681c193e91180cb25ae2a76 Mon Sep 17 00:00:00 2001 From: jhsinger-klotho <111291520+jhsinger-klotho@users.noreply.github.com> Date: Tue, 28 Nov 2023 13:48:08 -0500 Subject: [PATCH] add pulumi exports for rds and wait for ecs (#793) --- pkg/infra/iac3/templates/aws/ecs_service/factory.ts | 1 + pkg/infra/iac3/templates/aws/rds_instance/factory.ts | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/pkg/infra/iac3/templates/aws/ecs_service/factory.ts b/pkg/infra/iac3/templates/aws/ecs_service/factory.ts index 52afe3c48..d345c07d9 100644 --- a/pkg/infra/iac3/templates/aws/ecs_service/factory.ts +++ b/pkg/infra/iac3/templates/aws/ecs_service/factory.ts @@ -54,6 +54,7 @@ function create(args: Args): aws.ecs.Service { }, //TMPL {{- end }} taskDefinition: args.TaskDefinition.arn, + waitForSteadyState: true, }, { dependsOn: args.dependsOn } ) diff --git a/pkg/infra/iac3/templates/aws/rds_instance/factory.ts b/pkg/infra/iac3/templates/aws/rds_instance/factory.ts index 6e754a541..2a132301a 100644 --- a/pkg/infra/iac3/templates/aws/rds_instance/factory.ts +++ b/pkg/infra/iac3/templates/aws/rds_instance/factory.ts @@ -51,3 +51,14 @@ function properties(object: aws.rds.Instance, args: Args) { Endpoint: object.endpoint, } } + +function infraExports( + object: ReturnType, + args: Args, + props: ReturnType +) { + return { + Address: object.address, + Endpoint: object.endpoint, + } +}