Skip to main content

vpc_gateway_attachments

Retrieves a list of vpc_gateway_attachments in a region

Overview

Namevpc_gateway_attachments
TypeResource
Descriptionvpc_gateway_attachments
Idawscc.ec2.vpc_gateway_attachments

Fields

NameDatatypeDescription
attachment_typestringUsed to identify if this resource is an Internet Gateway or Vpn Gateway Attachment
vpc_idstringThe ID of the VPC.
regionstringAWS region.

Methods

Currently only SELECT is supported for this resource resource.

Example

SELECT
region,
attachment_type,
vpc_id
FROM awscc.ec2.vpc_gateway_attachments
WHERE region = 'us-east-1'

Permissions

To operate on the vpc_gateway_attachments resource, the following permissions are required:

Create

ec2:AttachInternetGateway,
ec2:AttachVpnGateway,
ec2:DescribeInternetGateways,
ec2:DescribeVpnGateways

List

ec2:DescribeInternetGateways,
ec2:DescribeVpnGateways