Provides an AWS Quantum Ledger Database (QLDB) resource
resource "aws_qldb_ledger" "sample-ledger" {
name = "sample-ledger"
permissions_mode = "STANDARD"
}
This resource supports the following arguments:
deletion_protection
- (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.kms_key
- (Optional) The key in AWS Key Management Service (AWS KMS) to use for encryption of data at rest in the ledger. For more information, see the AWS documentation. Valid values are "AWS_OWNED_KMS_KEY"
to use an AWS KMS key that is owned and managed by AWS on your behalf, or the ARN of a valid symmetric customer managed KMS key.name
- (Optional) The friendly name for the QLDB Ledger instance. By default generated by Terraform.permissions_mode
- (Required) The permissions mode for the QLDB ledger instance. Specify either ALLOW_ALL
or STANDARD
.tags
- (Optional) Key-value map of resource tags. If configured with a provider default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.This resource exports the following attributes in addition to the arguments above:
id
- The Name of the QLDB Ledgerarn
- The ARN of the QLDB Ledgertags_all
- A map of tags assigned to the resource, including those inherited from the provider default_tags
configuration block.create
- (Default 10m
)delete
- (Default 10m
)In Terraform v1.5.0 and later, use an import
block to import QLDB Ledgers using the name
. For example:
import {
to = aws_qldb_ledger.sample-ledger
id = "sample-ledger"
}
Using terraform import
, import QLDB Ledgers using the name
. For example:
% terraform import aws_qldb_ledger.sample-ledger sample-ledger