Please vote on this issue by adding a š reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment. If the issue is assigned to the "modular-magician" user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If the issue is assigned to a user, that user is claiming responsibility for the issue. If the issue is assigned to "hashibot", a community member has claimed the issue already.
Description
Create a datasource for instance groups to retrieve multiple instance groups with filters, such as AWS ASG
This will allow an easier management of MIGs especially when integrating with Google Load Balancer ( google_compute_backend_service ) while having different MIGs created
New or Affected Resource(s)
google_compute_instance_groups
google_container_node_pool
google_container_node_pools
Potential Terraform Configuration
data "google_compute_instance_groups" "groups" {
filter {
name = "key"
values = ["Team"]
}
filter {
name = "value"
values = ["Pets"]
}
}
data "google_container_node_pools" "groups" {
filter {
name = "key"
values = ["Team"]
}
filter {
name = "value"
values = ["Pets"]
}
}
Community Note
Description
Create a datasource for instance groups to retrieve multiple instance groups with filters, such as AWS ASG
This will allow an easier management of MIGs especially when integrating with Google Load Balancer ( google_compute_backend_service ) while having different MIGs created
New or Affected Resource(s)
Potential Terraform Configuration
References
0000 https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/autoscaling_groups