Skip to content

DynamoDB lock table encryption at rest #687

Discussion options

You must be logged in to vote

Can you use the kms_key_id field? You can find the documentation on this here: https://developer.hashicorp.com/terraform/language/settings/backends/s3.

I believe this specific section is what you are interested in:

kms_key_id - (Optional) Amazon Resource Name (ARN) of a Key Management Service (KMS) Key to use for encrypting the state. Note that if this value is specified, Terraform will need kms:Encrypt, kms:Decrypt and kms:GenerateDataKey permissions on this KMS key.

Caution: since you are changing the encryption method, terraform apply might delete the old table and try to re-create it with the new encryption method.

Hope this answer your question.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by james03160927
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment