vpcs
Retrieves a list of vpcs
in a region
Overview
Name | vpcs |
Type | Resource |
Description | Specifies 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*. |
Id | aws.ec2.vpcs |
Fields
Name | Datatype | Description |
---|---|---|
vpc_id | string | |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | data__DesiredState, region |
list_resource | SELECT | region |
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