Skip to main content

subnets

Retrieves a list of subnets in a region

Overview

Namesubnets
TypeResource
Descriptionsubnets
Idawscc.ec2.subnets

Fields

NameDatatypeDescription
subnet_idstring
regionstringAWS region.

Methods

Currently only SELECT is supported for this resource resource.

Example

SELECT
region,
subnet_id
FROM awscc.ec2.subnets
WHERE region = 'us-east-1'

Permissions

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

Create

ec2:DescribeSubnets,
ec2:CreateSubnet,
ec2:CreateTags,
ec2:ModifySubnetAttribute

List

ec2:DescribeSubnets,
ec2:DescribeNetworkAcls