-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |