Hey folks, I’ve been following the docs to try to ...
# general
d
Hey folks, I’ve been following the docs to try to setup an EC2 cluster that auto-scales. https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/awsx/ecs/#clusters And for some reason I’m getting this error when I do
pulumi up
Copy code
aws:cloudformation:Stack (hello-autoscaling-group):
  error: 1 error occurred:
  * creating urn:pulumi:dev::pulumi-quickstart::awsx:x:ecs:Cluster$awsx:x:autoscaling:AutoScalingGroup$aws:cloudformation/stack:Stack::hello-autoscaling-group: ROLLBACK_COMPLETE: ["The following resource(s) failed to create: [Instances]. . Rollback requested by user." "Property AvailabilityZones cannot be empty."]
Here’s the relevant code:
Copy code
const name = "hello";

const vpc = awsx.ec2.Vpc.getDefault();
const cluster = new Cluster(`${name}-cluster`, { vpc });

const asg = cluster.createAutoScalingGroup(`${name}-autoscaling-group`, {
  templateParameters: { minSize: 2, maxSize: 10 },
  launchConfigurationArgs: { instanceType: "t2.micro" },
});
Any idea what’s going on? I’m trying to just use
us-east-1
for everything to keep things simple. Thanks!