mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-03-17 13:00:44 -04:00
1.4 KiB
1.4 KiB
layout, page_title, sidebar_current, description
| layout | page_title | sidebar_current | description |
|---|---|---|---|
| aws | AWS: aws_elasticache_subnet_group | docs-aws-resource-elasticache-subnet-group | Provides an ElastiCache Subnet Group resource. |
aws_elasticache_subnet_group
Provides an ElastiCache Subnet Group resource.
~> NOTE: ElastiCache Subnet Groups are only for use when working with an ElastiCache cluster inside of a VPC. If you are on EC2 Classic, see the ElastiCache Security Group resource.
Example Usage
resource "aws_vpc" "foo" {
cidr_block = "10.0.0.0/16"
tags {
Name = "tf-test"
}
}
resource "aws_subnet" "foo" {
vpc_id = "${aws_vpc.foo.id}"
cidr_block = "10.0.0.0/24"
availability_zone = "us-west-2a"
tags {
Name = "tf-test"
}
}
resource "aws_elasticache_subnet_group" "bar" {
name = "tf-test-cache-subnet"
description = "tf-test-cache-subnet-group-descr"
subnet_ids = ["${aws_subnet.foo.id}"]
}
Argument Reference
The following arguments are supported:
description– (Required) Description for the cache subnet groupname– (Required) Name for the cache subnet group. This value is stored as a lowercase stringsubnet_ids– (Required) List of VPC Subnet IDs for the cache subnet group
Attributes Reference
The following attributes are exported:
descriptionnamesubnet_ids