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

Ignore TimeToLiveSpecification from tableDef #4

Merged
merged 3 commits into from
May 26, 2020
Merged

Ignore TimeToLiveSpecification from tableDef #4

merged 3 commits into from
May 26, 2020

Conversation

jseppi
Copy link
Contributor

@jseppi jseppi commented May 25, 2020

This PR amends dynamodb-test to delete TimeToLiveSpecification from the given tableDef.


The CreateTable API for DynamoDB does not support TimeToLiveSpecification (API ref), which means the aws-sdk DynamoDB.createTable also does not allow it. If TimeToLiveSpecification is present in the params, this error will be returned:

UnexpectedParameter: Unexpected key 'TimeToLiveSpecification' found in params

However, TimeToLiveSpecification is supported in CloudFormation as a Property when defining a Table (ref).

This mismatch causes some downstream problems when we convert a CloudFormation template for a Table to aws-sdk calls for testing with dynamodb-test/dynalite. dynalite itself does not support TTL (architect/dynalite#103) at all.

@jseppi jseppi requested a review from rclark May 25, 2020 14:26
@jseppi jseppi self-assigned this May 25, 2020
Copy link
Contributor

@rclark rclark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jseppi !

@jseppi jseppi merged commit e497f03 into master May 26, 2020
@jseppi jseppi deleted the ignore-ttl branch May 26, 2020 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants