AWS::AutoScaling::LaunchConfigurationThe AWS::AutoScaling::LaunchConfiguration resource specifies the launch configuration that can be used by an Auto Scaling group to configure Amazon EC2 instances.
19 configurable properties. 2 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
ImageId | string | RequiredCreate-only |
InstanceType | string | RequiredCreate-only |
AssociatePublicIpAddress | boolean | Create-only |
BlockDeviceMappings | Array<BlockDeviceMapping> | Create-only |
ClassicLinkVPCId | string | Create-only |
ClassicLinkVPCSecurityGroups | Array<string> | Create-only |
EbsOptimized | boolean | Create-only |
IamInstanceProfile | string | Create-only |
InstanceId | string | Create-onlyWrite-only |
InstanceMonitoring | boolean | Create-only |
KernelId | string | Create-only |
KeyName | string | Create-only |
LaunchConfigurationName | string | Create-only |
MetadataOptions | MetadataOptions | Create-only |
PlacementTenancy | string | Create-only |
RamDiskId | string | Create-only |
SecurityGroups | Array<Any | Any> | Create-only |
SpotPrice | string | Create-only |
UserData | string | Create-only |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::AutoScaling::LaunchConfiguration
Resources:
MyResource:
Type: AWS::AutoScaling::LaunchConfiguration
Properties:
ImageId: "my-imageid"
InstanceType: "value"Permissions CloudFormation needs in your IAM role to manage this resource.
autoscaling:DescribeLaunchConfigurationsautoscaling:CreateLaunchConfigurationautoscaling:DescribeLaunchConfigurationsiam:PassRoleautoscaling:DescribeLaunchConfigurationsautoscaling:DeleteLaunchConfigurationautoscaling:DescribeLaunchConfigurationsOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterLaunchConfigurationNameThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
AssociatePublicIpAddressBlockDeviceMappingsClassicLinkVPCIdClassicLinkVPCSecurityGroupsEbsOptimizedIamInstanceProfileImageIdInstanceIdInstanceMonitoringInstanceTypeKernelIdKeyNameLaunchConfigurationNameMetadataOptionsPlacementTenancyRamDiskIdSecurityGroupsSpotPriceUserData