-
Notifications
You must be signed in to change notification settings - Fork 9.9k
Closed
Labels
new-data-sourceIntroduces a new data source.Introduces a new data source.service/elasticacheIssues and PRs that pertain to the elasticache service.Issues and PRs that pertain to the elasticache service.
Milestone
Description
Description
Other similar subnet group resources also provide data sources. A data source for the subnet group is required to find the vpc id with the subnet group name.
Requested Resource(s) and/or Data Source(s)
- aws_elasticache_subnet_group
Potential Terraform Configuration
data "aws_elasticache_subnet_group" "this" {
name = "default"
}
resource "aws_security_group" "this" {
name = "example"
description = "Example Security Group."
vpc_id = data.aws_elasticache_subnet_group.this.vpc_id
}References
https://docs.aws.amazon.com/cli/latest/reference/elasticache/describe-cache-subnet-groups.html
Would you like to implement a fix?
No
posquit0
Metadata
Metadata
Assignees
Labels
new-data-sourceIntroduces a new data source.Introduces a new data source.service/elasticacheIssues and PRs that pertain to the elasticache service.Issues and PRs that pertain to the elasticache service.
