AWS::EC2::Instance
AWS::EC2::Instance#
Specifies an EC2 instance.
Description#
An instance is a virtual server in the AWS cloud. You can configure the instance with the compute, memory, storage, and networking resources that you need for your application.
Syntax#
JSON#
| |
YAML#
| |
Properties#
| Property | Type | Required | Update | Description | Constraints | Example |
|---|---|---|---|---|---|---|
| ImageId | String | Yes | Immutable | The ID of the AMI | Pattern: ^ami-[0-9a-f]{8,17}$ | ami-0c55b159cbfafe1f0 |
| InstanceType | String | Yes | Conditional | The instance type | Values: t2.micro, t2.small, t2.medium… | t2.micro |
| KeyName | String | No | Immutable | The name of the key pair | my-key-pair |
Examples#
See Examples for CloudFormation templates.