Skip to content

aws.ec2-security-group-data data source

Description

SecurityGroupData resolves exactly one existing EC2 security group with DescribeSecurityGroups. The lookup combines the optional id selector, scalar filters, tag filters, and generic filters as one query. A missing or ambiguous lookup is a normal data-source error, not runtime.ErrNotFound.

Source: internal/service/ec2/security_group_data_dsrc.go:21

Example usage:

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

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

Inputs

id

optional(string)

name

optional(string)

vpc-id

optional(string)

tags

map(string)

filter

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

Input Constraints

This kind declares no extra input constraints.

Outputs

id

string

arn

string

description

string

name

string

vpc-id

string

tags

map(string)