github.com/vtorhonen/terraform@v0.9.0-beta2.0.20170307220345-5d894e4ffda7/website/source/docs/providers/aws/r/elasticache_security_group.html.markdown (about) 1 --- 2 layout: "aws" 3 page_title: "AWS: aws_elasticache_security_group" 4 sidebar_current: "docs-aws-resource-elasticache-security-group" 5 description: |- 6 Provides an ElastiCache Security Group to control access to one or more cache clusters. 7 --- 8 9 # aws\_elasticache\_security\_<wbr>group 10 11 Provides an ElastiCache Security Group to control access to one or more cache 12 clusters. 13 14 ~> **NOTE:** ElastiCache Security Groups are for use only when working with an 15 ElastiCache cluster **outside** of a VPC. If you are using a VPC, see the 16 [ElastiCache Subnet Group resource](elasticache_subnet_group.html). 17 18 ## Example Usage 19 20 ``` 21 resource "aws_security_group" "bar" { 22 name = "security-group" 23 } 24 25 resource "aws_elasticache_security_group" "bar" { 26 name = "elasticache-security-group" 27 security_group_names = ["${aws_security_group.bar.name}"] 28 } 29 ``` 30 31 ## Argument Reference 32 33 The following arguments are supported: 34 35 * `name` – (Required) Name for the cache security group. This value is stored as a lowercase string. 36 * `description` – (Optional) description for the cache security group. Defaults to "Managed by Terraform". 37 * `security_group_names` – (Required) List of EC2 security group names to be 38 authorized for ingress to the cache security group 39 40 41 ## Attributes Reference 42 43 The following attributes are exported: 44 45 * `description` 46 * `name` 47 * `security_group_names`