aws:runInstances
–
Launch an Amazon EC2 instance
Launches a new Amazon Elastic Compute Cloud (Amazon EC2) instance.
Input
The action supports most API parameters. For more information, see the RunInstances API documentation.
- AdditionalInfo
-
Reserved.
Type: String
Required: No
- BlockDeviceMappings
-
The block devices for the instance.
Type: MapList
Required: No
- ClientToken
-
The identifier to ensure idempotency of the request.
Type: String
Required: No
- DisableApiTermination
-
Turns on or turns off instance API termination.
Type: Boolean
Required: No
- EbsOptimized
-
Turns on or turns off Amazon Elastic Block Store (Amazon EBS) optimization.
Type: Boolean
Required: No
- IamInstanceProfileArn
-
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) instance profile for the instance.
Type: String
Required: No
- IamInstanceProfileName
-
The name of the IAM instance profile for the instance.
Type: String
Required: No
- ImageId
-
The ID of the Amazon Machine Image (AMI).
Type: String
Required: Yes
- InstanceInitiatedShutdownBehavior
-
Indicates whether the instance stops or terminates on system shutdown.
Type: String
Required: No
- InstanceType
-
The instance type.
Note
If an instance type value isn't provided, the m1.small instance type is used.
Type: String
Required: No
- KernelId
-
The ID of the kernel.
Type: String
Required: No
- KeyName
-
The name of the key pair.
Type: String
Required: No
- MaxInstanceCount
-
The maximum number of instances to be launched.
Type: String
Required: No
- MetadataOptions
-
The metadata options for the instance. For more information, see InstanceMetadataOptionsRequest.
Type: StringMap
Required: No
- MinInstanceCount
-
The minimum number of instances to be launched.
Type: String
Required: No
- Monitoring
-
Turns on or turns off detailed monitoring.
Type: Boolean
Required: No
- NetworkInterfaces
-
The network interfaces.
Type: MapList
Required: No
- Placement
-
The placement for the instance.
Type: StringMap
Required: No
- PrivateIpAddress
-
The primary IPv4 address.
Type: String
Required: No
- RamdiskId
-
The ID of the RAM disk.
Type: String
Required: No
- SecurityGroupIds
-
The IDs of the security groups for the instance.
Type: StringList
Required: No
- SecurityGroups
-
The names of the security groups for the instance.
Type: StringList
Required: No
- SubnetId
-
The subnet ID.
Type: String
Required: No
- TagSpecifications
-
The tags to apply to the resources during launch. You can only tag instances and volumes at launch. The specified tags are applied to all instances or volumes that are created during launch. To tag an instance after it has been launched, use the aws:createTags – Create tags for AWS resources action.
Type: MapList (For more information, see TagSpecification.)
Required: No
- UserData
-
A script provided as a string literal value. If a literal value is entered, then it must be Base64-encoded.
Type: String
Required: No
Output
- InstanceIds
-
The IDs of the instances.
- InstanceStates
-
The current state of the instance.