full-dress-10026
05/30/2019, 6:04 PMawsx.ecs.Cluster
into an EC2 based ECS cluster?white-balloon-205
full-dress-10026
05/30/2019, 7:13 PMerror: Plan apply failed: 1 error occurred:
* creating urn:pulumi:fib-dev-ecs::fib::awsx:x:ecs:Cluster$awsx:x:autoscaling:AutoScalingGroup$aws:cloudformation/stack:Stack::app-asg: ROLLBACK_COMPLETE: ["The following resource(s) failed to create: [Instances]. . Rollback requested by user." "Property AvailabilityZones cannot be empty."]
vpc
as shown in the code. All the docs say that it should use the default vpc when one is not passed in.vpc
and still get the same result .AvailabilityZones
is required. The CF template in the AWS console does not include the AvailabilityZones
property.AWSTemplateFormatVersion: '2010-09-09'
Outputs:
Instances:
Value: !Ref Instances
Resources:
Instances:
Type: AWS::AutoScaling::AutoScalingGroup
Properties:
Cooldown: 300
DesiredCapacity: 2
HealthCheckGracePeriod: 120
HealthCheckType: EC2
LaunchConfigurationName: "app-asg-1ff1dbd"
MaxSize: 100
MetricsCollection:
- Granularity: 1Minute
MinSize: 2
VPCZoneIdentifier: []
Tags:
- Key: Name
Value: app-asg
PropagateAtLaunch: true
CreationPolicy:
ResourceSignal:
Count: 2
Timeout: PT15M
UpdatePolicy:
AutoScalingRollingUpdate:
MaxBatchSize: 1
MinInstancesInService: 2
PauseTime: PT15M
SuspendProcesses:
- ScheduledActions
WaitOnResourceSignals: true
white-balloon-205
full-dress-10026
05/30/2019, 9:07 PMwhite-balloon-205
vpc
in place of const vpc = // ... create custom vpc
in the docs example?full-dress-10026
05/30/2019, 9:19 PMawsx.ec2.Vpc.getDefault()