We recommend new projects start with resources from the AWS provider.
aws-native.autoscaling.LaunchConfiguration
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
The AWS::AutoScaling::LaunchConfiguration resource specifies the launch configuration that can be used by an Auto Scaling group to configure Amazon EC2 instances.
Create LaunchConfiguration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LaunchConfiguration(name: string, args: LaunchConfigurationArgs, opts?: CustomResourceOptions);
@overload
def LaunchConfiguration(resource_name: str,
args: LaunchConfigurationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LaunchConfiguration(resource_name: str,
opts: Optional[ResourceOptions] = None,
image_id: Optional[str] = None,
instance_type: Optional[str] = None,
instance_monitoring: Optional[bool] = None,
key_name: Optional[str] = None,
ebs_optimized: Optional[bool] = None,
iam_instance_profile: Optional[str] = None,
classic_link_vpc_id: Optional[str] = None,
instance_id: Optional[str] = None,
associate_public_ip_address: Optional[bool] = None,
block_device_mappings: Optional[Sequence[LaunchConfigurationBlockDeviceMappingArgs]] = None,
kernel_id: Optional[str] = None,
classic_link_vpc_security_groups: Optional[Sequence[str]] = None,
launch_configuration_name: Optional[str] = None,
metadata_options: Optional[LaunchConfigurationMetadataOptionsArgs] = None,
placement_tenancy: Optional[str] = None,
ram_disk_id: Optional[str] = None,
security_groups: Optional[Sequence[str]] = None,
spot_price: Optional[str] = None,
user_data: Optional[str] = None)
func NewLaunchConfiguration(ctx *Context, name string, args LaunchConfigurationArgs, opts ...ResourceOption) (*LaunchConfiguration, error)
public LaunchConfiguration(string name, LaunchConfigurationArgs args, CustomResourceOptions? opts = null)
public LaunchConfiguration(String name, LaunchConfigurationArgs args)
public LaunchConfiguration(String name, LaunchConfigurationArgs args, CustomResourceOptions options)
type: aws-native:autoscaling:LaunchConfiguration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- 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.
- name String
- The unique name of the resource.
- args LaunchConfigurationArgs
- The arguments to resource properties.
- options 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 Architecture and Concepts docs.
Inputs
The LaunchConfiguration resource accepts the following input properties:
- Image
Id string - Provides the unique ID of the Amazon Machine Image (AMI) that was assigned during registration.
- Instance
Type string - Specifies the instance type of the EC2 instance.
- Associate
Public boolIp Address - For Auto Scaling groups that are running in a virtual private cloud (VPC), specifies whether to assign a public IP address to the group's instances.
- Block
Device List<Pulumi.Mappings Aws Native. Auto Scaling. Inputs. Launch Configuration Block Device Mapping> - Specifies how block devices are exposed to the instance. You can specify virtual devices and EBS volumes.
- Classic
Link stringVpc Id - The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to.
- Classic
Link List<string>Vpc Security Groups - The IDs of one or more security groups for the VPC that you specified in the ClassicLinkVPCId property.
- Ebs
Optimized bool - Specifies whether the launch configuration is optimized for EBS I/O (true) or not (false).
- Iam
Instance stringProfile - Provides the name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance. The instance profile contains the IAM role.
- Instance
Id string - The ID of the Amazon EC2 instance you want to use to create the launch configuration.
- Instance
Monitoring bool - Controls whether instances in this group are launched with detailed (true) or basic (false) monitoring.
- Kernel
Id string - Provides the ID of the kernel associated with the EC2 AMI.
- Key
Name string - Provides the name of the EC2 key pair.
- Launch
Configuration stringName - The name of the launch configuration. This name must be unique per Region per account.
- Metadata
Options Pulumi.Aws Native. Auto Scaling. Inputs. Launch Configuration Metadata Options - The metadata options for the instances.
- Placement
Tenancy string - The tenancy of the instance, either default or dedicated.
- Ram
Disk stringId - The ID of the RAM disk to select.
- Security
Groups List<string> - A list that contains the security groups to assign to the instances in the Auto Scaling group.
- Spot
Price string - The maximum hourly price you are willing to pay for any Spot Instances launched to fulfill the request.
- User
Data string - The Base64-encoded user data to make available to the launched EC2 instances.
- Image
Id string - Provides the unique ID of the Amazon Machine Image (AMI) that was assigned during registration.
- Instance
Type string - Specifies the instance type of the EC2 instance.
- Associate
Public boolIp Address - For Auto Scaling groups that are running in a virtual private cloud (VPC), specifies whether to assign a public IP address to the group's instances.
- Block
Device []LaunchMappings Configuration Block Device Mapping Args - Specifies how block devices are exposed to the instance. You can specify virtual devices and EBS volumes.
- Classic
Link stringVpc Id - The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to.
- Classic
Link []stringVpc Security Groups - The IDs of one or more security groups for the VPC that you specified in the ClassicLinkVPCId property.
- Ebs
Optimized bool - Specifies whether the launch configuration is optimized for EBS I/O (true) or not (false).
- Iam
Instance stringProfile - Provides the name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance. The instance profile contains the IAM role.
- Instance
Id string - The ID of the Amazon EC2 instance you want to use to create the launch configuration.
- Instance
Monitoring bool - Controls whether instances in this group are launched with detailed (true) or basic (false) monitoring.
- Kernel
Id string - Provides the ID of the kernel associated with the EC2 AMI.
- Key
Name string - Provides the name of the EC2 key pair.
- Launch
Configuration stringName - The name of the launch configuration. This name must be unique per Region per account.
- Metadata
Options LaunchConfiguration Metadata Options Args - The metadata options for the instances.
- Placement
Tenancy string - The tenancy of the instance, either default or dedicated.
- Ram
Disk stringId - The ID of the RAM disk to select.
- Security
Groups []string - A list that contains the security groups to assign to the instances in the Auto Scaling group.
- Spot
Price string - The maximum hourly price you are willing to pay for any Spot Instances launched to fulfill the request.
- User
Data string - The Base64-encoded user data to make available to the launched EC2 instances.
- image
Id String - Provides the unique ID of the Amazon Machine Image (AMI) that was assigned during registration.
- instance
Type String - Specifies the instance type of the EC2 instance.
- associate
Public BooleanIp Address - For Auto Scaling groups that are running in a virtual private cloud (VPC), specifies whether to assign a public IP address to the group's instances.
- block
Device List<LaunchMappings Configuration Block Device Mapping> - Specifies how block devices are exposed to the instance. You can specify virtual devices and EBS volumes.
- classic
Link StringVpc Id - The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to.
- classic
Link List<String>Vpc Security Groups - The IDs of one or more security groups for the VPC that you specified in the ClassicLinkVPCId property.
- ebs
Optimized Boolean - Specifies whether the launch configuration is optimized for EBS I/O (true) or not (false).
- iam
Instance StringProfile - Provides the name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance. The instance profile contains the IAM role.
- instance
Id String - The ID of the Amazon EC2 instance you want to use to create the launch configuration.
- instance
Monitoring Boolean - Controls whether instances in this group are launched with detailed (true) or basic (false) monitoring.
- kernel
Id String - Provides the ID of the kernel associated with the EC2 AMI.
- key
Name String - Provides the name of the EC2 key pair.
- launch
Configuration StringName - The name of the launch configuration. This name must be unique per Region per account.
- metadata
Options LaunchConfiguration Metadata Options - The metadata options for the instances.
- placement
Tenancy String - The tenancy of the instance, either default or dedicated.
- ram
Disk StringId - The ID of the RAM disk to select.
- security
Groups List<String> - A list that contains the security groups to assign to the instances in the Auto Scaling group.
- spot
Price String - The maximum hourly price you are willing to pay for any Spot Instances launched to fulfill the request.
- user
Data String - The Base64-encoded user data to make available to the launched EC2 instances.
- image
Id string - Provides the unique ID of the Amazon Machine Image (AMI) that was assigned during registration.
- instance
Type string - Specifies the instance type of the EC2 instance.
- associate
Public booleanIp Address - For Auto Scaling groups that are running in a virtual private cloud (VPC), specifies whether to assign a public IP address to the group's instances.
- block
Device LaunchMappings Configuration Block Device Mapping[] - Specifies how block devices are exposed to the instance. You can specify virtual devices and EBS volumes.
- classic
Link stringVpc Id - The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to.
- classic
Link string[]Vpc Security Groups - The IDs of one or more security groups for the VPC that you specified in the ClassicLinkVPCId property.
- ebs
Optimized boolean - Specifies whether the launch configuration is optimized for EBS I/O (true) or not (false).
- iam
Instance stringProfile - Provides the name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance. The instance profile contains the IAM role.
- instance
Id string - The ID of the Amazon EC2 instance you want to use to create the launch configuration.
- instance
Monitoring boolean - Controls whether instances in this group are launched with detailed (true) or basic (false) monitoring.
- kernel
Id string - Provides the ID of the kernel associated with the EC2 AMI.
- key
Name string - Provides the name of the EC2 key pair.
- launch
Configuration stringName - The name of the launch configuration. This name must be unique per Region per account.
- metadata
Options LaunchConfiguration Metadata Options - The metadata options for the instances.
- placement
Tenancy string - The tenancy of the instance, either default or dedicated.
- ram
Disk stringId - The ID of the RAM disk to select.
- security
Groups string[] - A list that contains the security groups to assign to the instances in the Auto Scaling group.
- spot
Price string - The maximum hourly price you are willing to pay for any Spot Instances launched to fulfill the request.
- user
Data string - The Base64-encoded user data to make available to the launched EC2 instances.
- image_
id str - Provides the unique ID of the Amazon Machine Image (AMI) that was assigned during registration.
- instance_
type str - Specifies the instance type of the EC2 instance.
- associate_
public_ boolip_ address - For Auto Scaling groups that are running in a virtual private cloud (VPC), specifies whether to assign a public IP address to the group's instances.
- block_
device_ Sequence[Launchmappings Configuration Block Device Mapping Args] - Specifies how block devices are exposed to the instance. You can specify virtual devices and EBS volumes.
- classic_
link_ strvpc_ id - The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to.
- classic_
link_ Sequence[str]vpc_ security_ groups - The IDs of one or more security groups for the VPC that you specified in the ClassicLinkVPCId property.
- ebs_
optimized bool - Specifies whether the launch configuration is optimized for EBS I/O (true) or not (false).
- iam_
instance_ strprofile - Provides the name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance. The instance profile contains the IAM role.
- instance_
id str - The ID of the Amazon EC2 instance you want to use to create the launch configuration.
- instance_
monitoring bool - Controls whether instances in this group are launched with detailed (true) or basic (false) monitoring.
- kernel_
id str - Provides the ID of the kernel associated with the EC2 AMI.
- key_
name str - Provides the name of the EC2 key pair.
- launch_
configuration_ strname - The name of the launch configuration. This name must be unique per Region per account.
- metadata_
options LaunchConfiguration Metadata Options Args - The metadata options for the instances.
- placement_
tenancy str - The tenancy of the instance, either default or dedicated.
- ram_
disk_ strid - The ID of the RAM disk to select.
- security_
groups Sequence[str] - A list that contains the security groups to assign to the instances in the Auto Scaling group.
- spot_
price str - The maximum hourly price you are willing to pay for any Spot Instances launched to fulfill the request.
- user_
data str - The Base64-encoded user data to make available to the launched EC2 instances.
- image
Id String - Provides the unique ID of the Amazon Machine Image (AMI) that was assigned during registration.
- instance
Type String - Specifies the instance type of the EC2 instance.
- associate
Public BooleanIp Address - For Auto Scaling groups that are running in a virtual private cloud (VPC), specifies whether to assign a public IP address to the group's instances.
- block
Device List<Property Map>Mappings - Specifies how block devices are exposed to the instance. You can specify virtual devices and EBS volumes.
- classic
Link StringVpc Id - The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to.
- classic
Link List<String>Vpc Security Groups - The IDs of one or more security groups for the VPC that you specified in the ClassicLinkVPCId property.
- ebs
Optimized Boolean - Specifies whether the launch configuration is optimized for EBS I/O (true) or not (false).
- iam
Instance StringProfile - Provides the name or the Amazon Resource Name (ARN) of the instance profile associated with the IAM role for the instance. The instance profile contains the IAM role.
- instance
Id String - The ID of the Amazon EC2 instance you want to use to create the launch configuration.
- instance
Monitoring Boolean - Controls whether instances in this group are launched with detailed (true) or basic (false) monitoring.
- kernel
Id String - Provides the ID of the kernel associated with the EC2 AMI.
- key
Name String - Provides the name of the EC2 key pair.
- launch
Configuration StringName - The name of the launch configuration. This name must be unique per Region per account.
- metadata
Options Property Map - The metadata options for the instances.
- placement
Tenancy String - The tenancy of the instance, either default or dedicated.
- ram
Disk StringId - The ID of the RAM disk to select.
- security
Groups List<String> - A list that contains the security groups to assign to the instances in the Auto Scaling group.
- spot
Price String - The maximum hourly price you are willing to pay for any Spot Instances launched to fulfill the request.
- user
Data String - The Base64-encoded user data to make available to the launched EC2 instances.
Outputs
All input properties are implicitly available as output properties. Additionally, the LaunchConfiguration resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Supporting Types
LaunchConfigurationBlockDevice, LaunchConfigurationBlockDeviceArgs
- Delete
On boolTermination - Indicates whether the volume is deleted on instance termination.
- Encrypted bool
- Specifies whether the volume should be encrypted.
- Iops int
- The number of input/output (I/O) operations per second (IOPS) to provision for the volume.
- Snapshot
Id string - The snapshot ID of the volume to use.
- Throughput int
- The throughput (MiBps) to provision for a gp3 volume.
- Volume
Size int - The volume size, in GiBs.
- Volume
Type string - The volume type.
- Delete
On boolTermination - Indicates whether the volume is deleted on instance termination.
- Encrypted bool
- Specifies whether the volume should be encrypted.
- Iops int
- The number of input/output (I/O) operations per second (IOPS) to provision for the volume.
- Snapshot
Id string - The snapshot ID of the volume to use.
- Throughput int
- The throughput (MiBps) to provision for a gp3 volume.
- Volume
Size int - The volume size, in GiBs.
- Volume
Type string - The volume type.
- delete
On BooleanTermination - Indicates whether the volume is deleted on instance termination.
- encrypted Boolean
- Specifies whether the volume should be encrypted.
- iops Integer
- The number of input/output (I/O) operations per second (IOPS) to provision for the volume.
- snapshot
Id String - The snapshot ID of the volume to use.
- throughput Integer
- The throughput (MiBps) to provision for a gp3 volume.
- volume
Size Integer - The volume size, in GiBs.
- volume
Type String - The volume type.
- delete
On booleanTermination - Indicates whether the volume is deleted on instance termination.
- encrypted boolean
- Specifies whether the volume should be encrypted.
- iops number
- The number of input/output (I/O) operations per second (IOPS) to provision for the volume.
- snapshot
Id string - The snapshot ID of the volume to use.
- throughput number
- The throughput (MiBps) to provision for a gp3 volume.
- volume
Size number - The volume size, in GiBs.
- volume
Type string - The volume type.
- delete_
on_ booltermination - Indicates whether the volume is deleted on instance termination.
- encrypted bool
- Specifies whether the volume should be encrypted.
- iops int
- The number of input/output (I/O) operations per second (IOPS) to provision for the volume.
- snapshot_
id str - The snapshot ID of the volume to use.
- throughput int
- The throughput (MiBps) to provision for a gp3 volume.
- volume_
size int - The volume size, in GiBs.
- volume_
type str - The volume type.
- delete
On BooleanTermination - Indicates whether the volume is deleted on instance termination.
- encrypted Boolean
- Specifies whether the volume should be encrypted.
- iops Number
- The number of input/output (I/O) operations per second (IOPS) to provision for the volume.
- snapshot
Id String - The snapshot ID of the volume to use.
- throughput Number
- The throughput (MiBps) to provision for a gp3 volume.
- volume
Size Number - The volume size, in GiBs.
- volume
Type String - The volume type.
LaunchConfigurationBlockDeviceMapping, LaunchConfigurationBlockDeviceMappingArgs
- Device
Name string - The device name exposed to the EC2 instance (for example, /dev/sdh or xvdh).
- Ebs
Pulumi.
Aws Native. Auto Scaling. Inputs. Launch Configuration Block Device - Parameters used to automatically set up EBS volumes when an instance is launched.
- No
Device bool - Setting this value to true suppresses the specified device included in the block device mapping of the AMI.
- Virtual
Name string - The name of the virtual device.
- Device
Name string - The device name exposed to the EC2 instance (for example, /dev/sdh or xvdh).
- Ebs
Launch
Configuration Block Device - Parameters used to automatically set up EBS volumes when an instance is launched.
- No
Device bool - Setting this value to true suppresses the specified device included in the block device mapping of the AMI.
- Virtual
Name string - The name of the virtual device.
- device
Name String - The device name exposed to the EC2 instance (for example, /dev/sdh or xvdh).
- ebs
Launch
Configuration Block Device - Parameters used to automatically set up EBS volumes when an instance is launched.
- no
Device Boolean - Setting this value to true suppresses the specified device included in the block device mapping of the AMI.
- virtual
Name String - The name of the virtual device.
- device
Name string - The device name exposed to the EC2 instance (for example, /dev/sdh or xvdh).
- ebs
Launch
Configuration Block Device - Parameters used to automatically set up EBS volumes when an instance is launched.
- no
Device boolean - Setting this value to true suppresses the specified device included in the block device mapping of the AMI.
- virtual
Name string - The name of the virtual device.
- device_
name str - The device name exposed to the EC2 instance (for example, /dev/sdh or xvdh).
- ebs
Launch
Configuration Block Device - Parameters used to automatically set up EBS volumes when an instance is launched.
- no_
device bool - Setting this value to true suppresses the specified device included in the block device mapping of the AMI.
- virtual_
name str - The name of the virtual device.
- device
Name String - The device name exposed to the EC2 instance (for example, /dev/sdh or xvdh).
- ebs Property Map
- Parameters used to automatically set up EBS volumes when an instance is launched.
- no
Device Boolean - Setting this value to true suppresses the specified device included in the block device mapping of the AMI.
- virtual
Name String - The name of the virtual device.
LaunchConfigurationMetadataOptions, LaunchConfigurationMetadataOptionsArgs
- Http
Endpoint string - This parameter enables or disables the HTTP metadata endpoint on your instances.
- Http
Put intResponse Hop Limit - The desired HTTP PUT response hop limit for instance metadata requests.
- Http
Tokens string - The state of token usage for your instance metadata requests.
- Http
Endpoint string - This parameter enables or disables the HTTP metadata endpoint on your instances.
- Http
Put intResponse Hop Limit - The desired HTTP PUT response hop limit for instance metadata requests.
- Http
Tokens string - The state of token usage for your instance metadata requests.
- http
Endpoint String - This parameter enables or disables the HTTP metadata endpoint on your instances.
- http
Put IntegerResponse Hop Limit - The desired HTTP PUT response hop limit for instance metadata requests.
- http
Tokens String - The state of token usage for your instance metadata requests.
- http
Endpoint string - This parameter enables or disables the HTTP metadata endpoint on your instances.
- http
Put numberResponse Hop Limit - The desired HTTP PUT response hop limit for instance metadata requests.
- http
Tokens string - The state of token usage for your instance metadata requests.
- http_
endpoint str - This parameter enables or disables the HTTP metadata endpoint on your instances.
- http_
put_ intresponse_ hop_ limit - The desired HTTP PUT response hop limit for instance metadata requests.
- http_
tokens str - The state of token usage for your instance metadata requests.
- http
Endpoint String - This parameter enables or disables the HTTP metadata endpoint on your instances.
- http
Put NumberResponse Hop Limit - The desired HTTP PUT response hop limit for instance metadata requests.
- http
Tokens String - The state of token usage for your instance metadata requests.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.