Skip to main content

vpcs_list_only

Lists vpcs in a region or regions, for all properties use vpcs

Overview

Namevpcs_list_only
TypeResource
DescriptionSpecifies a virtual private cloud (VPC).
To add an IPv6 CIDR block to the VPC, see [AWS::EC2::VPCCidrBlock](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpccidrblock.html).
For more information, see [Virtual private clouds (VPC)](https://docs.aws.amazon.com/vpc/latest/userguide/configure-your-vpc.html) in the *Amazon VPC User Guide*.
Idaws.ec2.vpcs_list_only

Fields

NameDatatypeDescription
vpc_idstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
list_resourcesSELECTregion

SELECT examples

Lists all vpcs in a region.

SELECT
region,
vpc_id
FROM aws.ec2.vpcs_list_only
WHERE region = 'us-east-1';

Permissions

For permissions required to operate on the vpcs_list_only resource, see vpcs