Using Console
Using CLI
<VPC_ENDPOINT_ID>
with the ID of the VPC endpoint that you identified in step 3."PrivateDnsEnabled": true
and "PolicyDocument": {"Statement": [{"Effect": "Deny", "Principal": "*", "Action": "*", "Resource": "*"}], "Version": "2012-10-17"}
for the VPC endpoint that you modified.Using Python
aws ec2 describe-security-groups
to list all security groups and their associated rules.
aws ec2 revoke-security-group-ingress
to remove the rule.