Skip to content

aws.ec2-subnets data source

Description

Subnets looks up every EC2 subnet matching tag filters and generic DescribeSubnets filters. Empty matches are successful and return an empty ids list; AWS errors fail the read as ordinary data-source errors.

Source: internal/service/ec2/subnets_dsrc.go:16

Example usage:

imports: {
  aws: 'github.com/cloudboss/unobin-library-aws'
}

data-sources: {
  example: aws.ec2-subnets {
    # Set input fields here.
  }
}

Inputs

tags

map(string)

filter

list(object)
list(
  object({
    name: string
    values: list(string)
  })
)

Input Constraints

This kind declares no extra input constraints.

Outputs

ids

list(string)