Skip to main content

vpcs

Retrieves a list of vpcs in a region

Overview

Namevpcs
TypeResource
DescriptionSpecifies a virtual private cloud (VPC).<br/> You can optionally request an IPv6 CIDR block for the VPC. You can request an Amazon-provided IPv6 CIDR block from Amazon's pool of IPv6 addresses, or an IPv6 CIDR block from an IPv6 address pool that you provisioned through bring your own IP addresses (BYOIP).<br/> 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

Fields

NameDatatypeDescription
vpc_idstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTdata__DesiredState, region
list_resourceSELECTregion

SELECT Example

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

Permissions

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

Create

ec2:CreateVpc,
ec2:DescribeVpcs,
ec2:ModifyVpcAttribute,
ec2:CreateTags

List

ec2:DescribeVpcs