LaunchConfiguration

Provides a resource to create a new launch configuration, used for autoscaling groups.

Block devices

Each of the *_block_device attributes controls a portion of the AWS Launch Configuration’s “Block Device Mapping”. It’s a good idea to familiarize yourself with AWS’s Block Device Mapping docs to understand the implications of using these attributes.

The root_block_device mapping supports the following:

  • volume_type - (Optional) The type of volume. Can be "standard", "gp2", or "io1". (Default: "standard").
  • volume_size - (Optional) The size of the volume in gigabytes.
  • iops - (Optional) The amount of provisioned IOPS. This must be set with a volume_type of "io1".
  • delete_on_termination - (Optional) Whether the volume should be destroyed on instance termination (Default: true).
  • encrypted - (Optional) Whether the volume should be encrypted or not. (Default: false).

Modifying any of the root_block_device settings requires resource replacement.

Each ebs_block_device supports the following:

  • device_name - (Required) The name of the device to mount.
  • snapshot_id - (Optional) The Snapshot ID to mount.
  • volume_type - (Optional) The type of volume. Can be "standard", "gp2", or "io1". (Default: "standard").
  • volume_size - (Optional) The size of the volume in gigabytes.
  • iops - (Optional) The amount of provisioned IOPS. This must be set with a volume_type of "io1".
  • delete_on_termination - (Optional) Whether the volume should be destroyed on instance termination (Default: true).
  • encrypted - (Optional) Whether the volume should be encrypted or not. Do not use this option if you are using snapshot_id as the encrypted flag will be determined by the snapshot. (Default: false).
  • no_device - (Optional) Whether the device in the block device mapping of the AMI is suppressed.

Modifying any ebs_block_device currently requires resource replacement.

Each ephemeral_block_device supports the following:

  • device_name - The name of the block device to mount on the instance.
  • virtual_name - The Instance Store Device Name (e.g. "ephemeral0")

Each AWS Instance type has a different set of Instance Store block devices available for attachment. AWS publishes a list of which ephemeral devices are available on each type. The devices are always identified by the virtual_name in the format "ephemeral{0..N}".

NOTE: Changes to *_block_device configuration of existing resources cannot currently be detected by this provider. After updating to block device configuration, resource recreation can be manually triggered by using the up command with the –replace argument.

Create a LaunchConfiguration Resource

new LaunchConfiguration(name: string, args: LaunchConfigurationArgs, opts?: CustomResourceOptions);
@overload
def LaunchConfiguration(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        associate_public_ip_address: Optional[bool] = None,
                        ebs_block_devices: Optional[Sequence[LaunchConfigurationEbsBlockDeviceArgs]] = None,
                        ebs_optimized: Optional[bool] = None,
                        enable_monitoring: Optional[bool] = None,
                        ephemeral_block_devices: Optional[Sequence[LaunchConfigurationEphemeralBlockDeviceArgs]] = None,
                        iam_instance_profile: Optional[str] = None,
                        image_id: Optional[str] = None,
                        instance_type: Optional[str] = None,
                        key_name: Optional[str] = None,
                        metadata_options: Optional[LaunchConfigurationMetadataOptionsArgs] = None,
                        name: Optional[str] = None,
                        name_prefix: Optional[str] = None,
                        placement_tenancy: Optional[str] = None,
                        root_block_device: Optional[LaunchConfigurationRootBlockDeviceArgs] = None,
                        security_groups: Optional[Sequence[str]] = None,
                        spot_price: Optional[str] = None,
                        user_data: Optional[str] = None,
                        user_data_base64: Optional[str] = None,
                        vpc_classic_link_id: Optional[str] = None,
                        vpc_classic_link_security_groups: Optional[Sequence[str]] = None)
@overload
def LaunchConfiguration(resource_name: str,
                        args: LaunchConfigurationArgs,
                        opts: Optional[ResourceOptions] = None)
func NewLaunchConfiguration(ctx *Context, name string, args LaunchConfigurationArgs, opts ...ResourceOption) (*LaunchConfiguration, error)
public LaunchConfiguration(string name, LaunchConfigurationArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args LaunchConfigurationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args LaunchConfigurationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args LaunchConfigurationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args LaunchConfigurationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

LaunchConfiguration Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The LaunchConfiguration resource accepts the following input properties:

ImageId string
The EC2 image ID to launch.
InstanceType string
The size of instance to launch.
AssociatePublicIpAddress bool
Associate a public ip address with an instance in a VPC.
EbsBlockDevices List<LaunchConfigurationEbsBlockDeviceArgs>
Additional EBS block devices to attach to the instance. See Block Devices below for details.
EbsOptimized bool
If true, the launched EC2 instance will be EBS-optimized.
EnableMonitoring bool
Enables/disables detailed monitoring. This is enabled by default.
EphemeralBlockDevices List<LaunchConfigurationEphemeralBlockDeviceArgs>
Customize Ephemeral (also known as “Instance Store”) volumes on the instance. See Block Devices below for details.
IamInstanceProfile string | string
The name attribute of the IAM instance profile to associate with launched instances.
KeyName string
The key name that should be used for the instance.
MetadataOptions LaunchConfigurationMetadataOptionsArgs
The metadata options for the instance.
Name string
The name of the launch configuration. If you leave this blank, this provider will auto-generate a unique name.
NamePrefix string
Creates a unique name beginning with the specified prefix. Conflicts with name.
PlacementTenancy string
The tenancy of the instance. Valid values are "default" or "dedicated", see AWS’s Create Launch Configuration for more details
RootBlockDevice LaunchConfigurationRootBlockDeviceArgs
Customize details about the root block device of the instance. See Block Devices below for details.
SecurityGroups List<string>
A list of associated security group IDS.
SpotPrice string
The maximum price to use for reserving spot instances.
UserData string
The user data to provide when launching the instance. Do not pass gzip-compressed data via this argument; see user_data_base64 instead.
UserDataBase64 string
Can be used instead of user_data to pass base64-encoded binary data directly. Use this instead of user_data whenever the value is not a valid UTF-8 string. For example, gzip-encoded user data must be base64-encoded and passed via this argument to avoid corruption.
VpcClassicLinkId string
The ID of a ClassicLink-enabled VPC. Only applies to EC2-Classic instances. (eg. vpc-2730681a)
VpcClassicLinkSecurityGroups List<string>
The IDs of one or more security groups for the specified ClassicLink-enabled VPC (eg. sg-46ae3d11).
ImageId string
The EC2 image ID to launch.
InstanceType string
The size of instance to launch.
AssociatePublicIpAddress bool
Associate a public ip address with an instance in a VPC.
EbsBlockDevices []LaunchConfigurationEbsBlockDevice
Additional EBS block devices to attach to the instance. See Block Devices below for details.
EbsOptimized bool
If true, the launched EC2 instance will be EBS-optimized.
EnableMonitoring bool
Enables/disables detailed monitoring. This is enabled by default.
EphemeralBlockDevices []LaunchConfigurationEphemeralBlockDevice
Customize Ephemeral (also known as “Instance Store”) volumes on the instance. See Block Devices below for details.
IamInstanceProfile string | string
The name attribute of the IAM instance profile to associate with launched instances.
KeyName string
The key name that should be used for the instance.
MetadataOptions LaunchConfigurationMetadataOptions
The metadata options for the instance.
Name string
The name of the launch configuration. If you leave this blank, this provider will auto-generate a unique name.
NamePrefix string
Creates a unique name beginning with the specified prefix. Conflicts with name.
PlacementTenancy string
The tenancy of the instance. Valid values are "default" or "dedicated", see AWS’s Create Launch Configuration for more details
RootBlockDevice LaunchConfigurationRootBlockDevice
Customize details about the root block device of the instance. See Block Devices below for details.
SecurityGroups []string
A list of associated security group IDS.
SpotPrice string
The maximum price to use for reserving spot instances.
UserData string
The user data to provide when launching the instance. Do not pass gzip-compressed data via this argument; see user_data_base64 instead.
UserDataBase64 string
Can be used instead of user_data to pass base64-encoded binary data directly. Use this instead of user_data whenever the value is not a valid UTF-8 string. For example, gzip-encoded user data must be base64-encoded and passed via this argument to avoid corruption.
VpcClassicLinkId string
The ID of a ClassicLink-enabled VPC. Only applies to EC2-Classic instances. (eg. vpc-2730681a)
VpcClassicLinkSecurityGroups []string
The IDs of one or more security groups for the specified ClassicLink-enabled VPC (eg. sg-46ae3d11).
imageId string
The EC2 image ID to launch.
instanceType string
The size of instance to launch.
associatePublicIpAddress boolean
Associate a public ip address with an instance in a VPC.
ebsBlockDevices LaunchConfigurationEbsBlockDeviceArgs[]
Additional EBS block devices to attach to the instance. See Block Devices below for details.
ebsOptimized boolean
If true, the launched EC2 instance will be EBS-optimized.
enableMonitoring boolean
Enables/disables detailed monitoring. This is enabled by default.
ephemeralBlockDevices LaunchConfigurationEphemeralBlockDeviceArgs[]
Customize Ephemeral (also known as “Instance Store”) volumes on the instance. See Block Devices below for details.
iamInstanceProfile string | InstanceProfile
The name attribute of the IAM instance profile to associate with launched instances.
keyName string
The key name that should be used for the instance.
metadataOptions LaunchConfigurationMetadataOptionsArgs
The metadata options for the instance.
name string
The name of the launch configuration. If you leave this blank, this provider will auto-generate a unique name.
namePrefix string
Creates a unique name beginning with the specified prefix. Conflicts with name.
placementTenancy string
The tenancy of the instance. Valid values are "default" or "dedicated", see AWS’s Create Launch Configuration for more details
rootBlockDevice LaunchConfigurationRootBlockDeviceArgs
Customize details about the root block device of the instance. See Block Devices below for details.
securityGroups string[]
A list of associated security group IDS.
spotPrice string
The maximum price to use for reserving spot instances.
userData string
The user data to provide when launching the instance. Do not pass gzip-compressed data via this argument; see user_data_base64 instead.
userDataBase64 string
Can be used instead of user_data to pass base64-encoded binary data directly. Use this instead of user_data whenever the value is not a valid UTF-8 string. For example, gzip-encoded user data must be base64-encoded and passed via this argument to avoid corruption.
vpcClassicLinkId string
The ID of a ClassicLink-enabled VPC. Only applies to EC2-Classic instances. (eg. vpc-2730681a)
vpcClassicLinkSecurityGroups string[]
The IDs of one or more security groups for the specified ClassicLink-enabled VPC (eg. sg-46ae3d11).
image_id str
The EC2 image ID to launch.
instance_type str
The size of instance to launch.
associate_public_ip_address bool
Associate a public ip address with an instance in a VPC.
ebs_block_devices Sequence[LaunchConfigurationEbsBlockDeviceArgs]
Additional EBS block devices to attach to the instance. See Block Devices below for details.
ebs_optimized bool
If true, the launched EC2 instance will be EBS-optimized.
enable_monitoring bool
Enables/disables detailed monitoring. This is enabled by default.
ephemeral_block_devices Sequence[LaunchConfigurationEphemeralBlockDeviceArgs]
Customize Ephemeral (also known as “Instance Store”) volumes on the instance. See Block Devices below for details.
iam_instance_profile str | str
The name attribute of the IAM instance profile to associate with launched instances.
key_name str
The key name that should be used for the instance.
metadata_options LaunchConfigurationMetadataOptionsArgs
The metadata options for the instance.
name str
The name of the launch configuration. If you leave this blank, this provider will auto-generate a unique name.
name_prefix str
Creates a unique name beginning with the specified prefix. Conflicts with name.
placement_tenancy str
The tenancy of the instance. Valid values are "default" or "dedicated", see AWS’s Create Launch Configuration for more details
root_block_device LaunchConfigurationRootBlockDeviceArgs
Customize details about the root block device of the instance. See Block Devices below for details.
security_groups Sequence[str]
A list of associated security group IDS.
spot_price str
The maximum price to use for reserving spot instances.
user_data str
The user data to provide when launching the instance. Do not pass gzip-compressed data via this argument; see user_data_base64 instead.
user_data_base64 str
Can be used instead of user_data to pass base64-encoded binary data directly. Use this instead of user_data whenever the value is not a valid UTF-8 string. For example, gzip-encoded user data must be base64-encoded and passed via this argument to avoid corruption.
vpc_classic_link_id str
The ID of a ClassicLink-enabled VPC. Only applies to EC2-Classic instances. (eg. vpc-2730681a)
vpc_classic_link_security_groups Sequence[str]
The IDs of one or more security groups for the specified ClassicLink-enabled VPC (eg. sg-46ae3d11).

Outputs

All input properties are implicitly available as output properties. Additionally, the LaunchConfiguration resource produces the following output properties:

Arn string
The Amazon Resource Name of the launch configuration.
Id string
The provider-assigned unique ID for this managed resource.
Arn string
The Amazon Resource Name of the launch configuration.
Id string
The provider-assigned unique ID for this managed resource.
arn string
The Amazon Resource Name of the launch configuration.
id string
The provider-assigned unique ID for this managed resource.
arn str
The Amazon Resource Name of the launch configuration.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing LaunchConfiguration Resource

Get an existing LaunchConfiguration resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: LaunchConfigurationState, opts?: CustomResourceOptions): LaunchConfiguration
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        arn: Optional[str] = None,
        associate_public_ip_address: Optional[bool] = None,
        ebs_block_devices: Optional[Sequence[LaunchConfigurationEbsBlockDeviceArgs]] = None,
        ebs_optimized: Optional[bool] = None,
        enable_monitoring: Optional[bool] = None,
        ephemeral_block_devices: Optional[Sequence[LaunchConfigurationEphemeralBlockDeviceArgs]] = None,
        iam_instance_profile: Optional[str] = None,
        image_id: Optional[str] = None,
        instance_type: Optional[str] = None,
        key_name: Optional[str] = None,
        metadata_options: Optional[LaunchConfigurationMetadataOptionsArgs] = None,
        name: Optional[str] = None,
        name_prefix: Optional[str] = None,
        placement_tenancy: Optional[str] = None,
        root_block_device: Optional[LaunchConfigurationRootBlockDeviceArgs] = None,
        security_groups: Optional[Sequence[str]] = None,
        spot_price: Optional[str] = None,
        user_data: Optional[str] = None,
        user_data_base64: Optional[str] = None,
        vpc_classic_link_id: Optional[str] = None,
        vpc_classic_link_security_groups: Optional[Sequence[str]] = None) -> LaunchConfiguration
func GetLaunchConfiguration(ctx *Context, name string, id IDInput, state *LaunchConfigurationState, opts ...ResourceOption) (*LaunchConfiguration, error)
public static LaunchConfiguration Get(string name, Input<string> id, LaunchConfigurationState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

Arn string
The Amazon Resource Name of the launch configuration.
AssociatePublicIpAddress bool
Associate a public ip address with an instance in a VPC.
EbsBlockDevices List<LaunchConfigurationEbsBlockDeviceArgs>
Additional EBS block devices to attach to the instance. See Block Devices below for details.
EbsOptimized bool
If true, the launched EC2 instance will be EBS-optimized.
EnableMonitoring bool
Enables/disables detailed monitoring. This is enabled by default.
EphemeralBlockDevices List<LaunchConfigurationEphemeralBlockDeviceArgs>
Customize Ephemeral (also known as “Instance Store”) volumes on the instance. See Block Devices below for details.
IamInstanceProfile string | string
The name attribute of the IAM instance profile to associate with launched instances.
ImageId string
The EC2 image ID to launch.
InstanceType string
The size of instance to launch.
KeyName string
The key name that should be used for the instance.
MetadataOptions LaunchConfigurationMetadataOptionsArgs
The metadata options for the instance.
Name string
The name of the launch configuration. If you leave this blank, this provider will auto-generate a unique name.
NamePrefix string
Creates a unique name beginning with the specified prefix. Conflicts with name.
PlacementTenancy string
The tenancy of the instance. Valid values are "default" or "dedicated", see AWS’s Create Launch Configuration for more details
RootBlockDevice LaunchConfigurationRootBlockDeviceArgs
Customize details about the root block device of the instance. See Block Devices below for details.
SecurityGroups List<string>
A list of associated security group IDS.
SpotPrice string
The maximum price to use for reserving spot instances.
UserData string
The user data to provide when launching the instance. Do not pass gzip-compressed data via this argument; see user_data_base64 instead.
UserDataBase64 string
Can be used instead of user_data to pass base64-encoded binary data directly. Use this instead of user_data whenever the value is not a valid UTF-8 string. For example, gzip-encoded user data must be base64-encoded and passed via this argument to avoid corruption.
VpcClassicLinkId string
The ID of a ClassicLink-enabled VPC. Only applies to EC2-Classic instances. (eg. vpc-2730681a)
VpcClassicLinkSecurityGroups List<string>
The IDs of one or more security groups for the specified ClassicLink-enabled VPC (eg. sg-46ae3d11).
Arn string
The Amazon Resource Name of the launch configuration.
AssociatePublicIpAddress bool
Associate a public ip address with an instance in a VPC.
EbsBlockDevices []LaunchConfigurationEbsBlockDevice
Additional EBS block devices to attach to the instance. See Block Devices below for details.
EbsOptimized bool
If true, the launched EC2 instance will be EBS-optimized.
EnableMonitoring bool
Enables/disables detailed monitoring. This is enabled by default.
EphemeralBlockDevices []LaunchConfigurationEphemeralBlockDevice
Customize Ephemeral (also known as “Instance Store”) volumes on the instance. See Block Devices below for details.
IamInstanceProfile string | string
The name attribute of the IAM instance profile to associate with launched instances.
ImageId string
The EC2 image ID to launch.
InstanceType string
The size of instance to launch.
KeyName string
The key name that should be used for the instance.
MetadataOptions LaunchConfigurationMetadataOptions
The metadata options for the instance.
Name string
The name of the launch configuration. If you leave this blank, this provider will auto-generate a unique name.
NamePrefix string
Creates a unique name beginning with the specified prefix. Conflicts with name.
PlacementTenancy string
The tenancy of the instance. Valid values are "default" or "dedicated", see AWS’s Create Launch Configuration for more details
RootBlockDevice LaunchConfigurationRootBlockDevice
Customize details about the root block device of the instance. See Block Devices below for details.
SecurityGroups []string
A list of associated security group IDS.
SpotPrice string
The maximum price to use for reserving spot instances.
UserData string
The user data to provide when launching the instance. Do not pass gzip-compressed data via this argument; see user_data_base64 instead.
UserDataBase64 string
Can be used instead of user_data to pass base64-encoded binary data directly. Use this instead of user_data whenever the value is not a valid UTF-8 string. For example, gzip-encoded user data must be base64-encoded and passed via this argument to avoid corruption.
VpcClassicLinkId string
The ID of a ClassicLink-enabled VPC. Only applies to EC2-Classic instances. (eg. vpc-2730681a)
VpcClassicLinkSecurityGroups []string
The IDs of one or more security groups for the specified ClassicLink-enabled VPC (eg. sg-46ae3d11).
arn string
The Amazon Resource Name of the launch configuration.
associatePublicIpAddress boolean
Associate a public ip address with an instance in a VPC.
ebsBlockDevices LaunchConfigurationEbsBlockDeviceArgs[]
Additional EBS block devices to attach to the instance. See Block Devices below for details.
ebsOptimized boolean
If true, the launched EC2 instance will be EBS-optimized.
enableMonitoring boolean
Enables/disables detailed monitoring. This is enabled by default.
ephemeralBlockDevices LaunchConfigurationEphemeralBlockDeviceArgs[]
Customize Ephemeral (also known as “Instance Store”) volumes on the instance. See Block Devices below for details.
iamInstanceProfile string | InstanceProfile
The name attribute of the IAM instance profile to associate with launched instances.
imageId string
The EC2 image ID to launch.
instanceType string
The size of instance to launch.
keyName string
The key name that should be used for the instance.
metadataOptions LaunchConfigurationMetadataOptionsArgs
The metadata options for the instance.
name string
The name of the launch configuration. If you leave this blank, this provider will auto-generate a unique name.
namePrefix string
Creates a unique name beginning with the specified prefix. Conflicts with name.
placementTenancy string
The tenancy of the instance. Valid values are "default" or "dedicated", see AWS’s Create Launch Configuration for more details
rootBlockDevice LaunchConfigurationRootBlockDeviceArgs
Customize details about the root block device of the instance. See Block Devices below for details.
securityGroups string[]
A list of associated security group IDS.
spotPrice string
The maximum price to use for reserving spot instances.
userData string
The user data to provide when launching the instance. Do not pass gzip-compressed data via this argument; see user_data_base64 instead.
userDataBase64 string
Can be used instead of user_data to pass base64-encoded binary data directly. Use this instead of user_data whenever the value is not a valid UTF-8 string. For example, gzip-encoded user data must be base64-encoded and passed via this argument to avoid corruption.
vpcClassicLinkId string
The ID of a ClassicLink-enabled VPC. Only applies to EC2-Classic instances. (eg. vpc-2730681a)
vpcClassicLinkSecurityGroups string[]
The IDs of one or more security groups for the specified ClassicLink-enabled VPC (eg. sg-46ae3d11).
arn str
The Amazon Resource Name of the launch configuration.
associate_public_ip_address bool
Associate a public ip address with an instance in a VPC.
ebs_block_devices Sequence[LaunchConfigurationEbsBlockDeviceArgs]
Additional EBS block devices to attach to the instance. See Block Devices below for details.
ebs_optimized bool
If true, the launched EC2 instance will be EBS-optimized.
enable_monitoring bool
Enables/disables detailed monitoring. This is enabled by default.
ephemeral_block_devices Sequence[LaunchConfigurationEphemeralBlockDeviceArgs]
Customize Ephemeral (also known as “Instance Store”) volumes on the instance. See Block Devices below for details.
iam_instance_profile str | str
The name attribute of the IAM instance profile to associate with launched instances.
image_id str
The EC2 image ID to launch.
instance_type str
The size of instance to launch.
key_name str
The key name that should be used for the instance.
metadata_options LaunchConfigurationMetadataOptionsArgs
The metadata options for the instance.
name str
The name of the launch configuration. If you leave this blank, this provider will auto-generate a unique name.
name_prefix str
Creates a unique name beginning with the specified prefix. Conflicts with name.
placement_tenancy str
The tenancy of the instance. Valid values are "default" or "dedicated", see AWS’s Create Launch Configuration for more details
root_block_device LaunchConfigurationRootBlockDeviceArgs
Customize details about the root block device of the instance. See Block Devices below for details.
security_groups Sequence[str]
A list of associated security group IDS.
spot_price str
The maximum price to use for reserving spot instances.
user_data str
The user data to provide when launching the instance. Do not pass gzip-compressed data via this argument; see user_data_base64 instead.
user_data_base64 str
Can be used instead of user_data to pass base64-encoded binary data directly. Use this instead of user_data whenever the value is not a valid UTF-8 string. For example, gzip-encoded user data must be base64-encoded and passed via this argument to avoid corruption.
vpc_classic_link_id str
The ID of a ClassicLink-enabled VPC. Only applies to EC2-Classic instances. (eg. vpc-2730681a)
vpc_classic_link_security_groups Sequence[str]
The IDs of one or more security groups for the specified ClassicLink-enabled VPC (eg. sg-46ae3d11).

Supporting Types

LaunchConfigurationEbsBlockDevice

deviceName string
deleteOnTermination boolean
encrypted boolean
iops number
noDevice boolean
snapshotId string
volumeSize number
volumeType string

LaunchConfigurationEphemeralBlockDevice

DeviceName string
VirtualName string
DeviceName string
VirtualName string
deviceName string
virtualName string

LaunchConfigurationMetadataOptions

HttpEndpoint string
The state of the metadata service: enabled, disabled.
HttpPutResponseHopLimit int
The desired HTTP PUT response hop limit for instance metadata requests.
HttpTokens string
If session tokens are required: optional, required.
HttpEndpoint string
The state of the metadata service: enabled, disabled.
HttpPutResponseHopLimit int
The desired HTTP PUT response hop limit for instance metadata requests.
HttpTokens string
If session tokens are required: optional, required.
httpEndpoint string
The state of the metadata service: enabled, disabled.
httpPutResponseHopLimit number
The desired HTTP PUT response hop limit for instance metadata requests.
httpTokens string
If session tokens are required: optional, required.
http_endpoint str
The state of the metadata service: enabled, disabled.
http_put_response_hop_limit int
The desired HTTP PUT response hop limit for instance metadata requests.
http_tokens str
If session tokens are required: optional, required.

LaunchConfigurationRootBlockDevice

deleteOnTermination boolean
encrypted boolean
iops number
volumeSize number
volumeType string

Import

Launch configurations can be imported using the name, e.g.

 $ pulumi import aws:ec2/launchConfiguration:LaunchConfiguration as_conf lg-123456

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.