delightful-solstice-42033
07/30/2024, 8:55 PMaws:ecs:Service
resource. I can't find clues of what's wrong neither in AWS or Pulumi's dashboard. The resource is just stuck for 400+ seconds with no feedback.
I tried creating a service with the same configurations clicking around AWS Console, and it does work. This manually created service was attached to everything that was created via Pulumi before (Load balancer, listener, security group, subnets, execution roles, etc, so that I could isolate the problem in aws:ecs:Service
)...
I was able to extract a minimal reproduction, attached as a file below.
Any ideas on how to troubleshoot this problem - as in where can I look for error messages - is much appreciated.busy-monitor-69572
07/30/2024, 10:12 PMservice xyz has reached a steady state.
and will otherwise show you launching errors. This does make Pulumi stall a long time unfortunately.calm-keyboard-75974
07/31/2024, 9:38 AMcalm-keyboard-75974
07/31/2024, 9:39 AMdelightful-solstice-42033
07/31/2024, 11:57 AMiamRole
to ecs.Service when awsvpc was being used (which shouldn't be done), and improper VPC/subnet configuration. After that was figured out, Pulumi was still hanging but at least the service was showing under ECS, which I could then work through several other errors (internet connectivity, IP assignment, logger configuration, etc.)
Wish there was better messaging for that... happy to share my final setup for anyone else facing the same.
Thanks for the help Andrew & James 🙏. Cheershelpful-mechanic-48919
08/13/2024, 9:20 AMnew aws.ecs.Service(`app-${appName}`, {
cluster: cluster.arn,
desiredCount: replicas,
taskDefinition: taskDefinition.urn,
launchType: 'FARGATE',
platformVersion: 'LATEST',
deploymentController: { type: 'ECS' },
deploymentCircuitBreaker: { enable: true, rollback: true },
iamRole: taskExecutionRole.arn,
});
helpful-mechanic-48919
08/13/2024, 9:20 AMNo matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by