Created
February 23, 2019 20:55
-
-
Save 100daysofdevops/b152dede11ab6fc371b26b5d13f5599d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "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