Files
opentf/website/source/docs/providers/aws/r/elasticache_subnet_group.html.markdown
2015-06-28 16:13:25 +09:00

1.4 KiB
Raw Blame History

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 group
  • name (Required) Name for the cache subnet group. This value is stored as a lowercase string
  • subnet_ids (Required) List of VPC Subnet IDs for the cache subnet group

Attributes Reference

The following attributes are exported:

  • description
  • name
  • subnet_ids