github.com/jmbataller/terraform@v0.6.8-0.20151125192640-b7a12e3a580c/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 description = "security group" 24 } 25 26 resource "aws_elasticache_security_group" "bar" { 27 name = "elasticache-security-group" 28 description = "elasticache security group" 29 security_group_names = ["${aws_security_group.bar.name}"] 30 } 31 ``` 32 33 ## Argument Reference 34 35 The following arguments are supported: 36 37 * `description` – (Required) description for the cache security group 38 * `name` – (Required) Name for the cache security group. This value is stored as 39 a lowercase string 40 * `security_group_names` – (Required) List of EC2 security group names to be 41 authorized for ingress to the cache security group 42 43 44 ## Attributes Reference 45 46 The following attributes are exported: 47 48 * `description` 49 * `name` 50 * `security_group_names`