Skip to main content

Launch Configuration

Manages an Launch Configuration.

Example#

provider.autoscaling.makeLaunchConfiguration({
name: "launchConfigurationEcs",
properties: ({ config }) => ({
InstanceType: "t2.micro",
ImageId: "ami-02fee912d20d2f3cd",
UserData:
"IyEvYmluL2Jhc2gKZWNobyBFQ1NfQ0xVU1RFUj1jbHVzdGVyID4+IC9ldGMvZWNzL2Vjcy5jb25maWc7ZWNobyBFQ1NfQkFDS0VORF9IT1NUPSA+PiAvZXRjL2Vjcy9lY3MuY29uZmlnOw==",
InstanceMonitoring: {
Enabled: true,
},
BlockDeviceMappings: [
{
DeviceName: "/dev/xvda",
Ebs: {
VolumeSize: 30,
VolumeType: "gp2",
},
},
],
EbsOptimized: false,
}),
dependencies: ({ resources }) => ({
instanceProfile: resources.IAM.InstanceProfile.ecsInstanceRole,
securityGroups: [resources.EC2.SecurityGroup.ecsSecurityGroup],
}),
});

List#

The Launch Configuration can be filtered with the LaunchConfiguration type:

gc list --types AutoScalingGroup

Dependencies#

Used By#

Example#