This template creates a launch template and an instance profile. The instance profile references the IAM role being created (with ReadOnlyAccess managed policy) and can provide the role's temporary credentials to an application that runs on the instances created by this launch template. The launch template also prevents accidental instance termination when using the Amazon EC2 console, CLI, or API, by specifying `true` for the `DisableApiTermination` property. If the instances created by this launch template are launched in a default VPC, they receive a public IP address by default. If the instances are launched in a nondefault VPC, they do not receive a public IP address by default.

MyIamInstanceProfile
AWS::IAM::InstanceProfile


Roles

MyLaunchTemplate
AWS::EC2::LaunchTemplate


LaunchTemplateData *
BlockDeviceMappings
CapacityReservationSpecification
CapacityReservationTarget
CpuOptions
CreditSpecification
ElasticGpuSpecifications
ElasticInferenceAccelerators
EnclaveOptions
HibernationOptions
IamInstanceProfile
InstanceMarketOptions
SpotOptions
InstanceRequirements
AcceleratorCount

AcceleratorManufacturers

AcceleratorNames

AcceleratorTotalMemoryMiB

AcceleratorTypes

AllowedInstanceTypes

BaselineEbsBandwidthMbps

CpuManufacturers

ExcludedInstanceTypes

InstanceGenerations

LocalStorageTypes

MemoryGiBPerVCpu
MemoryMiB *
NetworkBandwidthGbps
NetworkInterfaceCount
TotalLocalStorageGB
VCpuCount *
LicenseSpecifications
MaintenanceOptions
MetadataOptions
Monitoring
NetworkInterfaces
Placement
PrivateDnsNameOptions

SecurityGroupIds

SecurityGroups

TagSpecifications

Role
AWS::IAM::Role


ManagedPolicyArns

CloudFormation Template

Share Template