{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "Deploy a VPC",
"Resources": {
"vpc": {
"Type": "AWS::EC2::VPC",
"Properties": {
"CidrBlock": "10.0.0.0/16",
"EnableDnsHostnames": "true",
"Tags": [
{
"Key": "Name",
"Value":"VPC"
}
]
}
},
"eip1":{
"Type":"AWS::EC2::EIP",
"Properties":{
"Domain":"vpc"
}
},
"rip2":{
"Type":"AWS::EC2::EIP",
"Properties":{
"Domain":"vpc"
}
},
"nat1": {
"Type": "AWS::EC2::NatGateway",
"Properties": {
"AllocationId": {
"Fn::GetAtt": [
"eip1",
"AllocationId"
]
},
"SubnetId": {
"Ref": "subnet1u"
},
"Tags": [
{
"Key": "Name",
"Value": "nat1"
}
]
}
},
"nat2": {
"Type": "AWS::EC2::NatGateway",
"Properties": {
"AllocationId": {
"Fn::GetAtt": [
"rip2",
"AllocationId"
]
vpc最优架构 堆栈
最新推荐文章于 2023-01-10 20:38:31 发布