This template creates an EC2 instance and associates a public IP address with the primary network interface. The instance is created in a specified subnet (subnet-123456) and references a new security group created to allow HTTPS traffic from the internet.

Ec2Instance
AWS::EC2::Instance


NetworkInterfaces

GroupSet

Ipv6Addresses
PrivateIpAddresses

SecurityGroup
AWS::EC2::SecurityGroup


SecurityGroupIngress

CloudFormation Template

Share Template