Skip to content

[New Data Source]: aws_elasticache_subnet_group #27114

@posquit0

Description

@posquit0

Description

image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    new-data-sourceIntroduces a new data source.service/elasticacheIssues and PRs that pertain to the elasticache service.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions