https://pulumi.com logo
Title
f

few-carpenter-12885

12/08/2022, 7:35 PM
Are there any gotchas for containerizing applications that run the Automation API? I'm running into some interesting behavior when spinning up an ECS stack when ran locally vs. inside of the container. Specifically, an AWS error related to the fargate service I'm spinning up.
Error: The default VPC does not have any private subnets. Set `assignPublicIp` to `true`, provide `networkConfiguration`, or add private subnets to the default VPC
l

little-soccer-5693

12/08/2022, 8:12 PM
Are you sure you're running pulumi w/ same aws account/user/role/region between your local environment vs. within container?
f

few-carpenter-12885

12/08/2022, 9:48 PM
Yes, I'm passing the same .env file using
--env-file
p

purple-market-1813

12/12/2022, 10:05 PM
@few-carpenter-12885 I think I am doing something similar, what does your dockerfile look like that it was able to install pulumi successfully?
f

few-carpenter-12885

12/13/2022, 8:52 PM
I think the error was legitimate. My stack was trying to deploy to the default VPC as private. Resolved it.
Dockerfile is just a standard typescript/node file
p

purple-market-1813

12/13/2022, 8:53 PM
@few-carpenter-12885 you are not using the pulumi based image and you are able to import pulumi into your project on the ecs task?
f

few-carpenter-12885

12/13/2022, 8:54 PM
Ah, sorry, yeah I'm using the pulumi-nodejs image as the base.
p

purple-market-1813

12/13/2022, 8:55 PM
@few-carpenter-12885 if you don't mind me asking, are you using an s3 backend?
f

few-carpenter-12885

12/13/2022, 8:55 PM
No, I'm using the default backend
p

purple-market-1813

12/13/2022, 8:56 PM
ah, ok, thank you!