Files
opentf/website/source/docs/providers/aws/r/elasticache_security_group.html.markdown
2017-04-17 13:17:54 +03:00

1.3 KiB
Raw Blame History

layout, page_title, sidebar_current, description
layout page_title sidebar_current description
aws AWS: aws_elasticache_security_group docs-aws-resource-elasticache-security-group Provides an ElastiCache Security Group to control access to one or more cache clusters.

aws_elasticache_security_group

Provides an ElastiCache Security Group to control access to one or more cache clusters.

~> NOTE: ElastiCache Security Groups are for use only when working with an ElastiCache cluster outside of a VPC. If you are using a VPC, see the ElastiCache Subnet Group resource.

Example Usage

resource "aws_security_group" "bar" {
  name = "security-group"
}

resource "aws_elasticache_security_group" "bar" {
  name                 = "elasticache-security-group"
  security_group_names = ["${aws_security_group.bar.name}"]
}

Argument Reference

The following arguments are supported:

  • name (Required) Name for the cache security group. This value is stored as a lowercase string.
  • description (Optional) description for the cache security group. Defaults to "Managed by Terraform".
  • security_group_names (Required) List of EC2 security group names to be authorized for ingress to the cache security group

Attributes Reference

The following attributes are exported:

  • description
  • name
  • security_group_names