

# internet-gateway-authorized-vpc-only
<a name="internet-gateway-authorized-vpc-only"></a>

Checks if internet gateways are attached to an authorized virtual private cloud (Amazon VPC). The rule is NON\$1COMPLIANT if internet gateways are attached to an unauthorized VPC. 



**Identifier:** INTERNET\$1GATEWAY\$1AUTHORIZED\$1VPC\$1ONLY

**Resource Types:** AWS::EC2::InternetGateway

**Trigger type:** Configuration changes

**AWS Region:** All supported AWS regions

**Parameters:**

AuthorizedVpcIds (Optional)Type: CSV  
Comma-separated list of the authorized VPC IDs with attached IGWs. If parameter is not provided all attached IGWs will be NON\$1COMPLIANT.

## AWS CloudFormation template
<a name="w2aac20c16c17b7d971c19"></a>

To create AWS Config managed rules with AWS CloudFormation templates, see [Creating AWS Config Managed Rules With AWS CloudFormation Templates](aws-config-managed-rules-cloudformation-templates.md).