dry-byte-5648
08/28/2023, 6:12 AMconst cloud = require("@pulumi/cloud");
let service = new cloud.Service("pulumi-nginx", {
containers: {
nginx: {
build: "./app",
memory: 128,
ports: [{ port: 80 }],
},
},
replicas: 1,
});
// export just the hostname property of the container frontend
exports.url = service.defaultEndpoint.apply(e => `http://${e.hostname}`);
Currently get this Error but would ideally want 1 vpc per stack:
Error: invocation of awsec2/getVpcgetVpc returned an error: invoking awsec2/getVpcgetVpc: 1 error occurred:
* no matching EC2 VPC found
Update: solved
I did pulumi config set cloud-aws:usePrivateNetwork true
based of this code https://github.com/danny-waite/pulumi-cloud/blob/master/aws/shared.ts#L119 and it seems to be generating vpcs nowNo 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