Skip to content

Instantly share code, notes, and snippets.

@AHaydar

AHaydar/block4. Secret

Created March 11, 2021 22:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AHaydar/8a03666d94dd21656e00c6bcd1cb7ebb to your computer and use it in GitHub Desktop.
Save AHaydar/8a03666d94dd21656e00c6bcd1cb7ebb to your computer and use it in GitHub Desktop.
SubnetPrivate:
Type: AWS::EC2::Subnet
Properties:
VpcId: !Ref VPC
AvailabilityZone: !Select [ 0, !GetAZs '' ]
CidrBlock: 192.168.0.0/17
Tags:
- Key: Name
Value: subnet-private
SubnetPublic:
Type: AWS::EC2::Subnet
Properties:
VpcId: !Ref VPC
AvailabilityZone: !Select [ 0, !GetAZs '' ]
CidrBlock: 192.168.128.0/17
MapPublicIpOnLaunch: true
Tags:
- Key: Name
Value: subnet-public
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment