Instance Args
Resource Type definition for AWS::EC2::Instance
Constructors
Properties
This property is reserved for internal use. If you use it, the stack fails with this error: Bad property set: Testing this property (Service: AmazonEC2; Status Code: 400; Error Code: InvalidParameterCombination; Request ID: 0XXXXXX-49c7-4b40-8bcc-76885dcXXXXX).
Indicates whether the instance is associated with a dedicated host. If you want the instance to always restart on the same host on which it was launched, specify host. If you want the instance to restart on any available host, but try to launch onto the last host it ran on (on a best-effort basis), specify default.
The Availability Zone of the instance.
The block device mapping entries that defines the block devices to attach to the instance at launch.
The CPU options for the instance.
The credit option for CPU usage of the burstable performance instance. Valid values are standard and unlimited.
If you set this parameter to true, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can.
Indicates whether the instance is optimized for Amazon EBS I/O.
An elastic GPU to associate with the instance.
An elastic inference accelerator to associate with the instance.
Indicates whether the instance is enabled for AWS Nitro Enclaves.
Indicates whether an instance is enabled for hibernation.
The ARN of the host resource group in which to launch the instances. If you specify a host resource group ARN, omit the Tenancy parameter or set it to host.
The IAM instance profile.
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
The instance type.
EC2-VPC The number of IPv6 addresses to associate with the primary network interface. Amazon EC2 chooses the IPv6 addresses from the range of your subnet.
EC2-VPC The IPv6 addresses from the range of the subnet to associate with the primary network interface.
The launch template to use to launch the instances.
The license configurations.
Specifies whether detailed monitoring is enabled for the instance.
The network interfaces to associate with the instance.
The name of an existing placement group that you want to launch the instance into (cluster | partition | spread).
The options for the instance hostname.
EC2-VPC The primary IPv4 address. You must specify a value from the IPv4 address range of the subnet.
Indicates whether to assign the tags from the instance to all of the volumes attached to the instance at launch. If you specify true and you assign tags to the instance, those tags are automatically assigned to all of the volumes that you attach to the instance at launch. If you specify false, those tags are not assigned to the attached volumes.
The IDs of the security groups.
the names of the security groups. For a nondefault VPC, you must use security group IDs instead.
Specifies whether to enable an instance launched in a VPC to perform NAT.
The SSM document and parameter values in AWS Systems Manager to associate with this instance.
The volumes to attach to the instance.