Created
December 16, 2022 10:36
-
-
Save projected1/bb8e548735fe26640ee9ae1a18c3a9d4 to your computer and use it in GitHub Desktop.
CloudFormation template to deploy EC2 instance in an AWS Local Zone.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AWSTemplateFormatVersion: '2010-09-09' | |
Parameters: | |
VpcId: | |
Type: AWS::EC2::VPC::Id | |
Resources: | |
Ec2Instance: | |
Type: AWS::EC2::Instance | |
Properties: | |
ImageId: ami-0b0dcb5067f052a63 | |
InstanceType: t3.medium | |
SubnetId: !Ref Ec2Subnet | |
SecurityGroupIds: | |
- !GetAtt WebSecurityGroup.GroupId | |
Ec2Subnet: | |
Type: AWS::EC2::Subnet | |
Properties: | |
VpcId: !Ref VpcId | |
CidrBlock: 172.31.96.0/24 | |
AvailabilityZone: us-east-1-nyc-1a | |
MapPublicIpOnLaunch: true | |
WebSecurityGroup: | |
Type: AWS::EC2::SecurityGroup | |
Properties: | |
SecurityGroupIngress: | |
- IpProtocol: tcp | |
FromPort: 80 | |
ToPort: 80 | |
CidrIp: 0.0.0.0/0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment