2

I am trying to encrypt the DynamoDB table using Terraform. I added this block for SSE encryption:-



    server_side_encryption 
    {
    enabled = true
    kms_master_key_id = "${var.kmsid}"
    sse_algorithm     = "kms"
    }

But I am getting below error:

Error: aws_dynamodb_table.example: server_side_encryption.0: invalid or unknown key: kms_master_key_id Error: aws_dynamodb_table.example: server_side_encryption.0: invalid or unknown key: sse_algorithm

Any suggestions would be really helpful.

1
  • DynamoDB tables are always encrypted and its free. Thus there is nothing to enable. However, you can choose to use your own KMS key (not free). Do you have a requirement to use your own KMS key for that? Commented May 19, 2020 at 10:50

1 Answer 1

2

Thats not valid. Take a look here in the documentation.

The following should be specified:

  • enabled
  • kms_key_arn
Sign up to request clarification or add additional context in comments.

1 Comment

Thank You mokugo-devops. The encryption worked for me.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.