EC2 Instance
Virtual machine in the cloud.
Configuration
Section titled “Configuration”| Setting | Type | Required | Default |
|---|---|---|---|
| Name | Text | Yes | — |
| Architecture Options: x86_64 (Intel / AMD), arm64 (Graviton) | Choice | Yes | x86_64 |
| Instance type | Choice | Yes | t3.micro |
| AMI ID | Text | — | — |
| Tenancy Options: Shared (default), Dedicated, Dedicated host | Choice | — | default |
| EBS-optimized | Toggle | — | true |
| Detailed monitoring | Toggle | — | false |
| SSH key pair name | Text | — | — |
| User data | Text | — | — |
| Root volume (GiB) | Number | — | 8 |
| Root volume type Options: gp3 (general purpose SSD), gp2, io2 (provisioned IOPS) | Choice | — | gp3 |
| Root volume IOPS | Number | — | — |
| Root volume throughput (MB/s) | Number | — | — |
| Root volume encrypted | Toggle | — | true |
| Root volume KMS ARN | Text | — | — |
| Delete root volume on termination | Toggle | — | true |
| IMDSv2 enforcement Options: Required (recommended), Optional | Choice | — | required |
| IMDS hop limit | Number | — | 1 |
| Source/dest check | Toggle | — | true |
| Disable API termination | Toggle | — | false |
| Disable API stop | Toggle | — | false |
| Shutdown behavior Options: Stop, Terminate | Choice | — | stop |
| CPU credit mode (T-series) Options: Standard, Unlimited | Choice | — | standard |
| CPU core count (override) | Number | — | — |
| Threads per core | Number | — | — |
| Enable hibernation | Toggle | — | false |
| Placement group name | Text | — | — |
| Dedicated host ID | Text | — | — |
| Capacity reservation Options: Open, None | Choice | — | open |
| IAM instance profile | Text | — | — |
| Availability zone | Text | — | — |
| Extra EBS volumes (device→size GiB) | Key–value | — | — |
| Extra ENI IDs | List | — | — |
| Tags | Key–value | — | — |
Connections
Section titled “Connections”| Socket | Direction | Accepts | Terraform arg |
|---|---|---|---|
| Subnet | Input | aws.subnet | subnet_id |
| Security groupsmulti | Input | aws.security-group | vpc_security_group_ids |
| Ingress | Input | any | — |
| Egress | Output | any | — |