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 Import does not import TTL settings #3235

Closed
endzyme opened this issue Feb 1, 2018 · 3 comments
Closed

DynamoDB Import does not import TTL settings #3235

endzyme opened this issue Feb 1, 2018 · 3 comments
Labels
service/dynamodb Issues and PRs that pertain to the dynamodb service.

Comments

@endzyme
Copy link

endzyme commented Feb 1, 2018

Terraform Version

Run terraform -v to show the version. If you are not running the latest version of Terraform, please upgrade because your issue may have already been fixed.

terraform v0.10.4 && .terraform/plugins/darwin_amd64/terraform-provider-aws_v1.3.1_x4

Import for dynamodb_table does not import the TTL setting.

Affected Resource(s)

Please list the resources as a list, for example:

  • aws_dynamodb_table

Terraform Configuration Files

n/a

Debug Output

Please provider a link to a GitHub Gist containing the complete debug output: https://www.terraform.io/docs/internals/debugging.html. Please do NOT paste the debug output in the issue; just paste a link to the Gist.

N/A

Panic Output

If Terraform produced a panic, please provide a link to a GitHub Gist containing the output of the crash.log.

n/a

Expected Behavior

What should have happened?

Should Import the TTL from the dynamodb table.

Actual Behavior

What actually happened?

Doesn't import the TTL into the statefile.

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform import aws_dynamodb_table.my_fancy_table TableName

The result (if the table is configured with a ttl) will import with ttl => false. Then subsequent plans will show a pending change. When you apply it returns a 400 on the API call but still writes the state file with the TTL change so that and subsequent apply's will be OK.

Important Factoids

Are there anything atypical about your accounts that we should know? For example: Running in EC2 Classic? Custom version of OpenStack? Tight ACLs?

References

Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:

@bflad bflad added the service/dynamodb Issues and PRs that pertain to the dynamodb service. label Feb 1, 2018
@bflad
Copy link
Contributor

bflad commented Feb 1, 2018

Hi @endzyme! Sorry you ran into this, but looks like it was fixed in #2452, which was released in v1.6.0 of the AWS provider. It looks like your version noted above is v1.3.1. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

@bflad bflad closed this as completed Feb 1, 2018
@endzyme
Copy link
Author

endzyme commented Feb 2, 2018

Doh!! Thanks!

@ghost
Copy link

ghost commented Apr 8, 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 8, 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