Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamodb use server_side_encryption #4949

Closed
ghost opened this issue Jun 22, 2018 · 3 comments
Closed

Dynamodb use server_side_encryption #4949

ghost opened this issue Jun 22, 2018 · 3 comments
Labels
service/dynamodb Issues and PRs that pertain to the dynamodb service.
Milestone

Comments

@ghost
Copy link

ghost commented Jun 22, 2018

This issue was originally opened by @ctippur as hashicorp/terraform#18310. It was migrated here as a result of the provider split. The original body of the issue is below.


Terraform Version

0.11.7

Terraform Configuration Files

resource "aws_dynamodb_table" "user-table" {
  name           = "Testing"
  read_capacity  = 5
  write_capacity = 5
  hash_key       = "UserId"

  server_side_encryption {
    enabled = true
  }

  attribute {
    name = "UserId"
    type = "S"
  }
}

Debug Output

Error: module.ddb.aws_dynamodb_table.user-table: : invalid or unknown key: server_side_encryption

Crash Output

Expected Behavior

Should have gone ahead and created the table.

Actual Behavior

got the error mentioned above

Steps to Reproduce

  1. terraform init
  2. terraform apply

Additional Context

References

https://www.terraform.io/docs/providers/aws/r/dynamodb_table.html#server_side_encryption

@tomelliff
Copy link
Contributor

@ctippur what version of the AWS provider are you using?

Server side encryption of Dynamo DB tables was added back in 1.11.0 so as long as you are on a version more recent than that you should be fine.

@bflad bflad added the service/dynamodb Issues and PRs that pertain to the dynamodb service. label Jun 22, 2018
@bflad bflad added this to the v1.11.0 milestone Jun 22, 2018
@bflad
Copy link
Contributor

bflad commented Jun 22, 2018

As @tomelliff mentioned, support for the aws_dynamodb_table resource server_side_encryption argument was added via #3303 and was previously released in version 1.11.0 of the AWS provider and has been available in all releases since. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

@bflad bflad closed this as completed Jun 22, 2018
@ghost
Copy link
Author

ghost commented Apr 5, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/dynamodb Issues and PRs that pertain to the dynamodb service.
Projects
None yet
Development

No branches or pull requests

2 participants