refined-vegetable-66224
02/12/2020, 1:55 AMpulumi up
I am getting the following error
error: deleting urn:pulumi:production::insig-express::awsx:x:ecs:Cluster$awsx:x:autoscaling:AutoScalingGroup$awsx:x:autoscaling:AutoScalingLaunchConfiguration$aws:ec2/launchConfiguration:LaunchConfiguration::apps-autoscaling-prod: error deleting Autoscaling Launch Configuration (app-autoscaling-prod-9341984): ResourceInUse: Cannot delete launch configuration app-autoscaling-prod-9341984 because it is attached to AutoScalingGroup app-autoscaling-prod-654d7a2-Instances-10K7OFBLTHZ2N
status code: 400
I've tried everything on this page https://www.pulumi.com/docs/troubleshooting with no luck. Any advice would be appreciated!white-balloon-205
refined-vegetable-66224
02/12/2020, 1:23 PMtargetGroup-${envName}
, {`
port: 80,
targetType: "instance"
});
`const autoScalingGroup = cluster.createAutoScalingGroup(insig-express-autoscaling-${envName}
, {`
targetGroups: [targetGroup],
subnetIds: awsx.ec2.Vpc.getDefault().publicSubnetIds,
templateParameters: {
minSize: fargate.desiredCount || 2,
maxSize: fargate.maxCount || 10,
defaultCooldown: fargate.defaultCooldown || 60
},
launchConfigurationArgs: {
associatePublicIpAddress: true
},
});
`autoScalingGroup.scaleToTrackAverageCPUUtilization(keepAround50Percent-${envName}
, {`
targetValue: 50,
});
`const policy = autoScalingGroup.scaleToTrackRequestCountPerTarget(onHighRequest-${envName}
, {`
targetValue: 2000,
targetGroup: targetGroup,
});
busy-magazine-48939
03/18/2020, 10:30 AMcreateAutoScalingGroup
method – under the hood it uses cloudformation template that expects that targetGroup will be of a different type - Instance
.A list of target groups to associate with the Auto Scaling group. All target groups must have the “instance” [targetType].