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.