Skip to content

Commit

Permalink
Merge pull request #22011 from danquack/asg-group-docs
Browse files Browse the repository at this point in the history
📝 update docs to support asg filters change
  • Loading branch information
ewbankkit committed Dec 2, 2021
2 parents 0520268 + dde708f commit 9eddee4
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions website/docs/d/autoscaling_groups.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ ASGs within a specific region. This will allow you to pass a list of AutoScaling
```terraform
data "aws_autoscaling_groups" "groups" {
filter {
name = "key"
values = ["Team"]
name = "tag:Team"
values = ["Pets"]
}
filter {
name = "value"
values = ["Pets"]
name = "tag-key"
values = ["Environment"]
}
}
Expand All @@ -42,8 +42,9 @@ resource "aws_autoscaling_notification" "slack_notifications" {

## Argument Reference

* `names` - (Optional) A list of autoscaling group names
* `filter` - (Optional) A filter used to scope the list e.g., by tags. See [related docs](http://docs.aws.amazon.com/AutoScaling/latest/APIReference/API_Filter.html).
* `name` - (Required) The name of the filter. The valid values are: `auto-scaling-group`, `key`, `value`, and `propagate-at-launch`.
* `name` - (Required) The name of the DescribeAutoScalingGroup filter. The recommended values are: `tag-key`, `tag-value`, and `tag:<tag name>`
* `values` - (Required) The value of the filter.

## Attributes Reference
Expand All @@ -52,4 +53,4 @@ In addition to all arguments above, the following attributes are exported:

* `arns` - A list of the Autoscaling Groups Arns in the current region.
* `id` - AWS Region.
* `names` - A list of the Autoscaling Groups in the current region.
* `names` - A list of the Autoscaling Groups in the current region.

0 comments on commit 9eddee4

Please sign in to comment.