Skip to content

Latest commit

 

History

History
91 lines (69 loc) · 1.44 KB

aws_elasticache_subnet_group.md

File metadata and controls

91 lines (69 loc) · 1.44 KB

aws_elasticache_subnet_group

back

Index

Terraform

terraform {
  required_providers {
    aws = ">= 3.35.0"
  }
}

top

Example Usage

module "aws_elasticache_subnet_group" {
  source = "./modules/aws/r/aws_elasticache_subnet_group"

  # description - (optional) is a type of string
  description = null
  # name - (required) is a type of string
  name = null
  # subnet_ids - (required) is a type of set of string
  subnet_ids = []
}

top

Variables

variable "description" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "name" {
  description = "(required)"
  type        = string
}

variable "subnet_ids" {
  description = "(required)"
  type        = set(string)
}

top

Resource

resource "aws_elasticache_subnet_group" "this" {
  # description - (optional) is a type of string
  description = var.description
  # name - (required) is a type of string
  name = var.name
  # subnet_ids - (required) is a type of set of string
  subnet_ids = var.subnet_ids
}

top

Outputs

output "id" {
  description = "returns a string"
  value       = aws_elasticache_subnet_group.this.id
}

output "this" {
  value = aws_elasticache_subnet_group.this
}

top