Update Cloudformation template (#1446)

This commit is contained in:
Scottpedia
2023-08-19 09:42:15 +08:00
committed by GitHub
parent 5a4a97bf1a
commit 557f13f661

View File

@@ -310,7 +310,6 @@
"Metadata": {},
"DependsOn": [
"VpnRouteTable",
"VpnServerVolume",
"KeyPairCreation",
"AMIInfoFunction",
"VpnSecurityGroup",
@@ -355,21 +354,6 @@
},
"Metadata": {}
},
"VpnServerVolume": {
"Type": "AWS::EC2::Volume",
"Properties": {
"AvailabilityZone": {
"Fn::Select": [
"0",
{
"Fn::GetAZs": ""
}
]
},
"Size": 8
},
"Metadata": {}
},
"VpcInternetGateway": {
"Type": "AWS::EC2::InternetGateway",
"Properties": {},
@@ -378,7 +362,7 @@
"VpnVpc"
]
},
"EC2SRTA4VJU5": {
"SubnetRouteTableAssociation": {
"Type": "AWS::EC2::SubnetRouteTableAssociation",
"Properties": {
"RouteTableId": {
@@ -529,17 +513,6 @@
"Action": [
"sts:AssumeRole"
]
},
{
"Effect": "Allow",
"Principal": {
"Service": [
"ec2.amazonaws.com"
]
},
"Action": [
"sts:AssumeRole"
]
}
]
},
@@ -572,7 +545,7 @@
"Effect": "Allow",
"Principal": {
"Service": [
"s3.amazonaws.com"
"ec2.amazonaws.com"
]
},
"Action": [
@@ -590,7 +563,7 @@
"Statement": [
{
"Effect": "Allow",
"Action": "s3:UploadObject",
"Action": "s3:PutObject",
"Resource": [
{
"Fn::Join": [
@@ -644,19 +617,6 @@
}
},
"Metadata": {}
},
"EC2VA41EUF": {
"Type": "AWS::EC2::VolumeAttachment",
"Properties": {
"Device": "/dev/sdh",
"VolumeId": {
"Ref": "VpnServerVolume"
},
"InstanceId": {
"Ref": "VpnInstance"
}
},
"Metadata": {}
}
},
"Parameters": {
@@ -770,4 +730,4 @@
}
}
}
}
}