Skip to content

Instantly share code, notes, and snippets.

@100daysofdevops
Created February 23, 2019 20:55
Show Gist options
  • Select an option

  • Save 100daysofdevops/b152dede11ab6fc371b26b5d13f5599d to your computer and use it in GitHub Desktop.

Select an option

Save 100daysofdevops/b152dede11ab6fc371b26b5d13f5599d to your computer and use it in GitHub Desktop.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Deny",
"Action": [
"ec2:ModifyTransitGatewayVpcAttachment",
"ec2:DeleteTransitGatewayVpcAttachment",
"ec2:DetachClassicLinkVpc",
"ec2:AcceptVpcPeeringConnection",
"ec2:DeleteVpcPeeringConnection",
"ec2:RejectTransitGatewayVpcAttachment",
"ec2:CreateVpcPeeringConnection",
"ec2:RejectVpcPeeringConnection"
],
"Resource": [
"arn:aws:ec2:*:*:vpc-peering-connection/*",
"arn:aws:ec2:*:*:subnet/*",
"arn:aws:ec2:*:*:instance/*",
"arn:aws:ec2:us-west-2:123456789012:vpc/vpc-12345678", <--Modify with your VPC id
"arn:aws:ec2:*:*:transit-gateway-attachment/*"
]
},
{
"Sid": "VisualEditor1",
"Effect": "Deny",
"Action": [
"ec2:ModifyVpcEndpointServicePermissions",
"ec2:ModifyVpcEndpointServiceConfiguration",
"ec2:MoveAddressToVpc",
"ec2:DeleteVpcEndpoints",
"ec2:CreateVpc",
"ec2:DescribeVpcEndpointServices",
"ec2:DeleteVpcEndpointServiceConfigurations",
"ec2:AssociateVpcCidrBlock",
"ec2:DescribeVpcAttribute",
"ec2:ModifyVpcPeeringConnectionOptions",
"ec2:ModifyVpcAttribute",
"ec2:DescribeVpcEndpointConnections",
"ec2:RejectVpcEndpointConnections",
"ec2:CreateVpcEndpointConnectionNotification",
"ec2:AcceptVpcEndpointConnections",
"ec2:DescribeVpcClassicLinkDnsSupport",
"ec2:DescribeVpcPeeringConnections",
"ec2:DescribeVpcEndpointServiceConfigurations",
"ec2:ModifyVpcEndpointConnectionNotification",
"ec2:DescribeVpcEndpointConnectionNotifications",
"ec2:DescribeVpcClassicLink",
"ec2:CreateVpcEndpointServiceConfiguration",
"ec2:DescribeVpcEndpointServicePermissions",
"ec2:DeleteVpcEndpointConnectionNotifications",
"ec2:CreateDefaultVpc",
"ec2:CreateVpcEndpoint",
"ec2:DescribeVpcs",
"ec2:ModifyVpcTenancy",
"ec2:EnableVpcClassicLinkDnsSupport",
"ec2:DescribeVpcEndpoints",
"ec2:DeleteVpc",
"ec2:DescribeTransitGatewayVpcAttachments",
"ec2:ModifyVpcEndpoint"
],
"Resource": "*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment