EC2 Launch Template
Reusable EC2 launch configuration (AMI + instance type + user data).
Configuration
Section titled “Configuration”| Setting | Type | Required | Default |
|---|---|---|---|
| Template name | Text | Yes | — |
| AMI ID | Text | — | — |
| Instance type | Text | — | — |
| SSH key pair | Text | — | — |
| User data | Text | — | — |
| IAM instance profile | Text | — | — |
| Market type Options: On-demand, Spot | Choice | — | on-demand |
| Spot max price ($/hr) | Number | — | — |
| Spot instance type Options: One-time, Persistent | Choice | — | — |
| EBS-optimized | Toggle | — | true |
| Detailed monitoring | Toggle | — | false |
| IMDSv2 enforcement Options: Required, Optional | Choice | — | required |
| Security group IDs | List | — | — |
| Tag specifications (resource→key=value) | Key–value | — | — |
| Tags | Key–value | — | — |
Connections
Section titled “Connections”| Socket | Direction | Accepts | Terraform arg |
|---|---|---|---|
| Image / AMI | Input | any | — |
| IAM instance profile | Input | aws.iam-instance-profile | iam_instance_profile.name |
| Used by (ASG / instances) | Output | aws.asg | — |