vpcs_list_only
Lists vpcs in a region or regions, for all properties use vpcs
Overview
| Name | vpcs_list_only |
| Type | Resource |
| Description | Specifies 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. |
| Id | aws.ec2.vpcs_list_only |
Fields
| Name | Datatype | Description |
|---|---|---|
vpc_id | string | |
region | string | AWS region. |
Methods
| Name | Accessible by | Required Params |
|---|---|---|
list_resources | SELECT | region |
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