Skip to content

Commit

Permalink
AWS QLDB (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
sekka1 authored Mar 15, 2022
1 parent c1134a9 commit 429e8a7
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
6 changes: 6 additions & 0 deletions terraform-modules/aws/qldb/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
resource "aws_qldb_ledger" "this" {
name = var.name
permissions_mode = var.permissions_mode
deletion_protection = var.deletion_protection
tags = var.tags
}
7 changes: 7 additions & 0 deletions terraform-modules/aws/qldb/outputs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
output "id" {
value = aws_qldb_ledger.this.id
}

output "arn" {
value = aws_qldb_ledger.this.arn
}
23 changes: 23 additions & 0 deletions terraform-modules/aws/qldb/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
variable "name" {
type = string
default = ""
description = "(Optional) The friendly name for the QLDB Ledger instance. By default generated by Terraform."
}

variable "permissions_mode" {
type = string
default = "STANDARD"
description = "(Required) The permissions mode for the QLDB ledger instance. Specify either ALLOW_ALL or STANDARD."
}

variable "deletion_protection" {
type = bool
default = true
description = "(Optional) The deletion protection for the QLDB Ledger instance. By default it is true. To delete this resource via Terraform, this value must be configured to false and applied first before attempting deletion."
}

variable "tags" {
type = any
default = {}
description = "AWS Tags"
}

0 comments on commit 429e8a7

Please sign in to comment.