Skip to content

Latest commit

 

History

History
118 lines (92 loc) · 1.9 KB

aws_elasticache_parameter_group.md

File metadata and controls

118 lines (92 loc) · 1.9 KB

aws_elasticache_parameter_group

back

Index

Terraform

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

top

Example Usage

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

  # description - (optional) is a type of string
  description = null
  # family - (required) is a type of string
  family = null
  # name - (required) is a type of string
  name = null

  parameter = [{
    name  = null
    value = null
  }]
}

top

Variables

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

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

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

variable "parameter" {
  description = "nested block: NestingSet, min items: 0, max items: 0"
  type = set(object(
    {
      name  = string
      value = string
    }
  ))
  default = []
}

top

Resource

resource "aws_elasticache_parameter_group" "this" {
  # description - (optional) is a type of string
  description = var.description
  # family - (required) is a type of string
  family = var.family
  # name - (required) is a type of string
  name = var.name

  dynamic "parameter" {
    for_each = var.parameter
    content {
      # name - (required) is a type of string
      name = parameter.value["name"]
      # value - (required) is a type of string
      value = parameter.value["value"]
    }
  }

}

top

Outputs

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

output "this" {
  value = aws_elasticache_parameter_group.this
}

top