Skip to content
New issue

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

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

Already on GitHub? # to your account

cdk-deploy(dynamoDB): We don't support attributes of the 'Custom::AmplifyDynamoDBTable' resource. #32200

Closed
2 tasks
naedx opened this issue Nov 19, 2024 · 1 comment
Labels
@aws-cdk/aws-dynamodb Related to Amazon DynamoDB feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged.

Comments

@naedx
Copy link

naedx commented Nov 19, 2024

Describe the feature

Support adding time to live configuration on DynamoDB Tables.

Could not perform a hotswap deployment, because the CloudFormation template could not be resolved: We don't support attributes of the 'Custom::AmplifyDynamoDBTable' resource. This is a CDK limitation. Please report it at https://github.com/aws/aws-cdk/issues/new/choose
Falling back to doing a full deployment

Use Case

I've enabled time to live for my tables, now I'm dying every time I make a change in my Amplify Gen 2 applications.

const backend = defineBackend({
  auth,
  data,
});

//Enable time to live for tables
Object.values(backend.data.resources.cfnResources.cfnTables).forEach((table) => {
  table.timeToLiveSpecification = {
    enabled: true,
  }
});

Proposed Solution

Support ttl config.

Other Information

Related to: #19421, #19620, #32199 and maybe #30933

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

v2.166.0

Environment details (OS name and version, etc.)

Debian GNU/Linux 10 (buster)

@naedx naedx added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Nov 19, 2024
@github-actions github-actions bot added the @aws-cdk/aws-dynamodb Related to Amazon DynamoDB label Nov 19, 2024
@naedx naedx closed this as completed Nov 19, 2024
Copy link

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 19, 2024
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
@aws-cdk/aws-dynamodb Related to Amazon DynamoDB feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

1 participant