Skip to content

Instantly share code, notes, and snippets.

@spasam
Created March 25, 2023 23:21
Show Gist options
  • Save spasam/dffc22e737c26a7f1bd6241726707795 to your computer and use it in GitHub Desktop.
Save spasam/dffc22e737c26a7f1bd6241726707795 to your computer and use it in GitHub Desktop.
Disallows Virtual Private Network (VPN) connections (Site-to-Site VPN and Client VPN) to an Amazon Virtual Private Cloud (VPC)
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "GRDISALLOWVPNCONNECTIONS",
"Effect": "Deny",
"Action": [
"ec2:CreateVPNGateway",
"ec2:AttachVPNGateway",
"ec2:CreateCustomerGateway",
"ec2:CreateVpnConnection",
"ec2:ModifyVpnConnection",
"ec2:CreateClientVpnEndpoint",
"ec2:ModifyClientVpnEndpoint",
"ec2:AssociateClientVpnTargetNetwork",
"ec2:AuthorizeClientVpnIngress"
],
"Resource": [
"*"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment