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.

CloudFormation Template