1
0
mirror of synced 2025-02-16 20:13:19 +03:00

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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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