Guided Walkthroughs

Configuration Packages

Custom Packages

By Implementation

Service Control PoliciesConfig RulesAuto Remediation RulesConformance PacksAmazon GuardDutyAmazon InspectorAWS Security HubAWS Network FirewallRoute53 Resolver SecurityAmazon MacieS3 Bucket PoliciesCloudWatch Alarms and Event RulesAWS WAFAWS Secrets ManagerAWS Systems ManagerSecurity Groups & NACLsAWS KMSAWS SSOIAM PoliciesVPC Endpoint PoliciesCloudFormation Guard RulesLoad BalancersRDS Event SubscriptionsAWS Resource Access Manager (RAM)

By Service Protected

Reference Guides


EC2 Security Controls

EC2 Launch Template

Configuration to create an Amazon EC2 Launch Template to be used to provision EC2 Instances. The template includes customizable settings such as configuring instance type, image id, IMDS enforcement, volume and interface settings, and more.

All settings in the launch template are optional:

  • Launch Template Name
  • Instance Image: Set the EC2 image id to be used when launching instances
  • Instance Type: Specify instance size (e.g. Memory and CPU settings) based on the instance type
  • Instance Metadata Service (IMDS): Enforce IMDSv2 or allow both IMDS v1 and v2 (CloudFormation requires the creation of a Launch Template to enable this setting)
  • SSH Key: Provide the name for a pre-existing Key Pair
  • IAM Instance Profile Arn: Specify an IAM role to be attached to the EC2 instances launched 
  • Customize EBS Volumes: By default one EBS volume is attached, but more can be added with settings that include: volume type, volume size, device name, encryption key, and more
  • Customize Network Interfaces (ENIs): By default one interface is attached, but more interfaces can be added with settings that include: subnet Id, static IP address, security group(s), description, and more
  • User Data: Provide commands (Windows or Linux) to be run at the time of instance launch
  • More settings such as disabling API termination, enabling EBS optimization, enabling detailed monitoring, and controlling the instance shutdown behaviour
0.4 KB
AWSTemplateFormatVersion: "2010-09-09"
Description: ""
    Type: "AWS::EC2::LaunchTemplate"
        DisableApiTermination: false
        InstanceInitiatedShutdownBehavior: "stop"
          Enabled: false
          HttpEndpoint: "enabled"
          HttpTokens: "required"
Parameters: {}
Metadata: {}
Conditions: {}


Customize Template

* Required field

Upgrade to Premium for More Features

Guided Walkthroughs
Step-by-step configuration wizards for your environment
Dedicated Security Account
AWS Backup Strategy
VPC Connectivity Setup
Automated Patching
All Guides
Configuration Packages
Pre-built packages for common configuration
Common SCPs
CloudFormation Guard Rules
Auto Remediation Rules
IAM Monitoring & Compliance
All Packages
Automated Assessments
  • 350+ security checks
  • Well-architected reviews
  • Detailed compliance reports
  • Remediation templates
  • Email summaries
  • Learn more