Using Console
Using CLI
<internet-gateway-id>
with the ID of the Internet Gateway and <unauthorized-vpc-id>
with the ID of the unauthorized Virtual Private Cloud.<internet-gateway-id>
with the ID of the Internet Gateway.By following these steps, you can remediate the misconfiguration of an Internet Gateway being attached to unauthorized Virtual Private Clouds in AWS using AWS CLI.Using Python
'YOUR_UNAUTHORIZED_VPC_ID'
and 'YOUR_CORRECT_VPC_ID'
with the actual IDs of the unauthorized VPC and the correct VPC, respectively.