Skip to content

Enable PointInTimeRecovery for a single DynamoDB table by cloudFormation (not all in schema) #202

Description

@cs-thorsten

Which Category is your question related to?

I want to activate PointInTimeRecovery for just one single table in the schema by CloudFormation.

Amplify CLI Version

4.44.0

What AWS Services are you utilizing?

AWS Amplify, Amazon DynamoDB, AWS CloudFormation, AWS CDK

Provide additional details e.g. code snippets

I know to enable PITR by setting PointInTimeRecoveryEnabled in amplify/backend/api/<api-name>/parameters.json to true. But this enables PITR for all tables in the schema.

I know to activate it maually either in the AWS DynmoDB Console or by CLI:
aws dynamodb update-continuous-backups --table-name myTable --point-in-time-recovery-specification PointInTimeRecoveryEnabled=True

But I want to define it in the template, so it can be deliverd to multiple environments without manual interaction.

As there is no annotation for the type in the schema.graphql file, we thought there might be a way to set it via Cloudformation in amplify/backend/api/<myapi>/stacks/CustomResources.json
but we did not find out yet.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions