Skip to content

Instantly share code, notes, and snippets.

@AHaydar

AHaydar/block4. Secret

Created Mar 11, 2021
Embed
What would you like to do?
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