bland-painting-33593
04/26/2024, 4:25 PMbland-painting-33593
04/26/2024, 5:32 PMquick-house-41860
04/26/2024, 8:35 PMdependsOn
) on the listener to the definition of the ecs service?
Something like this:
const service = new aws.ecs.Service(`${envStub}-service`, {/*...*/}, { dependsOn: [listener] });
bland-painting-33593
04/26/2024, 8:37 PMbland-painting-33593
04/26/2024, 8:38 PMquick-house-41860
04/26/2024, 8:44 PMbland-painting-33593
04/26/2024, 8:45 PMquick-house-41860
04/26/2024, 8:49 PMdependsOn
have a look here: https://www.pulumi.com/docs/concepts/options/dependson/bland-painting-33593
04/26/2024, 9:12 PMquick-house-41860
04/26/2024, 9:19 PMbland-painting-33593
04/26/2024, 9:25 PMbland-painting-33593
04/26/2024, 9:32 PMquick-house-41860
04/26/2024, 9:50 PMscaling_target
needs a dependency on the ECS service.
You could either add the depends on or change the resource id to reference the service object.bland-painting-33593
04/26/2024, 9:51 PMbland-painting-33593
04/26/2024, 9:51 PMquick-house-41860
04/26/2024, 9:58 PMname
output of the ECS service. This would also set the dependency.
Something like this:
const scaling_target = new aws.appautoscaling.Target(
`${envStub}-lb-scaling-target`,
{
maxCapacity: 25,
minCapacity: 2,
resourceId: pulumi.interpolate`service/${envStub}-cluster/${service.name}`,,
roleArn: vpc_consts.scalingRole,
scalableDimension: "ecs:service:DesiredCount",
serviceNamespace: "ecs",
}
);
bland-painting-33593
04/26/2024, 10:00 PMquick-house-41860
04/26/2024, 10:04 PMbland-painting-33593
04/26/2024, 10:04 PMquick-house-41860
04/26/2024, 10:13 PMbland-painting-33593
04/26/2024, 10:15 PMbland-painting-33593
04/26/2024, 10:16 PMquick-house-41860
04/26/2024, 10:19 PMbland-painting-33593
04/26/2024, 10:20 PMquick-house-41860
04/26/2024, 10:24 PM"rds.babelfish_status": ["on", "pending-reboot"]
"babelfishpg_tds.tds_ssl_encrypt": ["1", "immediate"]
bland-painting-33593
04/26/2024, 10:25 PMquick-house-41860
04/26/2024, 10:26 PMbland-painting-33593
04/26/2024, 10:33 PM