Data Source: aws_vpc_security_group_rules

This resource can be useful for getting back a set of security group rule IDs.

Example Usage

data "aws_vpc_security_group_rules" "example" {
  filter {
    name   = "group-id"
    values = [var.security_group_id]
  }
}

Argument Reference

More complex filters can be expressed using one or more filter sub-blocks, which take the following arguments:

Attribute Reference

This data source exports the following attributes in addition to the arguments above: