Guided Walkthroughs
Step-by-step configuration wizards for your environment
Dedicated Security Account
AWS Backup Strategy
VPC Connectivity Setup
Automated Patching
All Guides
Configuration template to deploy an Amazon EC2 instance with customizable settings that include Instance Metadata Service (IMDS) settings, volume and interface settings, name tag, key pairs, user data, and more.
The following settings are available in this template:
AWSTemplateFormatVersion: '2010-09-09'
Description: ''
Resources:
LaunchTemplate:
Type: 'AWS::EC2::LaunchTemplate'
Properties:
LaunchTemplateData:
MetadataOptions:
HttpTokens: required
Ec2Instance:
Type: 'AWS::EC2::Instance'
Properties:
ImageId:
Ref: amazon2
InstanceType: t2.micro
BlockDeviceMappings:
- DeviceName: /dev/xvda
Ebs:
VolumeSize: 32
DeleteOnTermination: true
VolumeType: gp3
LaunchTemplate:
LaunchTemplateId:
Ref: LaunchTemplate
Version: '1'
Parameters:
amazon2:
Type: 'AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>'
Default: /aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-x86_64-gp2
Metadata: {}
Conditions: {}