Skip to content

Latest commit

 

History

History
103 lines (79 loc) · 1.59 KB

aws_qldb_ledger.md

File metadata and controls

103 lines (79 loc) · 1.59 KB

aws_qldb_ledger

back

Index

Terraform

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

top

Example Usage

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

  # deletion_protection - (optional) is a type of bool
  deletion_protection = null
  # name - (optional) is a type of string
  name = null
  # tags - (optional) is a type of map of string
  tags = {}
}

top

Variables

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

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

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

top

Resource

resource "aws_qldb_ledger" "this" {
  # deletion_protection - (optional) is a type of bool
  deletion_protection = var.deletion_protection
  # name - (optional) is a type of string
  name = var.name
  # tags - (optional) is a type of map of string
  tags = var.tags
}

top

Outputs

output "arn" {
  description = "returns a string"
  value       = aws_qldb_ledger.this.arn
}

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

output "name" {
  description = "returns a string"
  value       = aws_qldb_ledger.this.name
}

output "this" {
  value = aws_qldb_ledger.this
}

top