Skip to content

Commit dc99d34

Browse files
authored
AWS QLDB (#272)
1 parent 799e0da commit dc99d34

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

terraform-modules/aws/qldb/main.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
resource "aws_qldb_ledger" "this" {
2+
name = var.name
3+
permissions_mode = var.permissions_mode
4+
deletion_protection = var.deletion_protection
5+
tags = var.tags
6+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
output "id" {
2+
value = aws_qldb_ledger.this.id
3+
}
4+
5+
output "arn" {
6+
value = aws_qldb_ledger.this.arn
7+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
variable "name" {
2+
type = string
3+
default = ""
4+
description = "(Optional) The friendly name for the QLDB Ledger instance. By default generated by Terraform."
5+
}
6+
7+
variable "permissions_mode" {
8+
type = string
9+
default = "STANDARD"
10+
description = "(Required) The permissions mode for the QLDB ledger instance. Specify either ALLOW_ALL or STANDARD."
11+
}
12+
13+
variable "deletion_protection" {
14+
type = bool
15+
default = true
16+
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."
17+
}
18+
19+
variable "tags" {
20+
type = any
21+
default = {}
22+
description = "AWS Tags"
23+
}

0 commit comments

Comments
 (0)