Cloud-Formation Template for VPC with two subnets(JSON)


AWS cloud formation template for VPC:




{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" :"Network vpc with subnet",
"Resources" : {
"myVpc": {
"Description" : "MYVPC details",
"Type" : "AWS::EC2::VPC",
"Properties" : {
"CidrBlock": "192.168.0.0/16"
}
},

"webSubnet": {
"Description" : "MY WEB SUBNET details",
"Type" : "AWS::EC2::Subnet",
"Properties" : {
"AvailabilityZone" : "ap-south-1a",
"CidrBlock": "192.168.0.0/24",
"VpcId" : { "Ref" : "myVpc" }
}
},

"dataSubnet": {
"Description" : "MY DATA SUBNET details",
"Type" : "AWS::EC2::Subnet",
"Properties" : {
"AvailabilityZone" : "ap-south-1b",
"CidrBlock": "192.168.1.0/24",
"VpcId" : { "Ref" : "myVpc" }
}
}

}
}

Comments

Popular posts from this blog

How to run Jenkins on Docker container | How to create Jenkins Volumes on Docker

POWERSHELL

Building game of life container