Skip to content

CL-627 | Add DynamoDBBackup module #28

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

Merged
merged 1 commit into from
Jul 9, 2024
Merged

Conversation

gsoria
Copy link

@gsoria gsoria commented Jul 6, 2024

This PR adds a new module to handle DynamoDB backups.

Testing steps

  • Create dynamodb table and a backup:
# create a table
aws dynamodb create-table \
    --table-name Music \
    --attribute-definitions \
        AttributeName=Artist,AttributeType=S \
        AttributeName=SongTitle,AttributeType=S \
    --key-schema \
        AttributeName=Artist,KeyType=HASH \
        AttributeName=SongTitle,KeyType=RANGE \
    --provisioned-throughput \
        ReadCapacityUnits=5,WriteCapacityUnits=5 \
    --table-class STANDARD

# Create backup
aws dynamodb create-backup --table-name Music --backup-name Music_backup
  • Run aws-nuke including DynamoDBBackup module
  • Verify if resources were cleaned up successfully
# List backups
aws dynamodb list-backups

Copy link

@swhite-oreilly swhite-oreilly left a comment

Choose a reason for hiding this comment

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

Confirmed deletion of the backup successfully deleted here.

@gsoria gsoria merged commit c334b85 into oreilly-main Jul 9, 2024
1 check passed
corybekk pushed a commit that referenced this pull request Nov 6, 2024
* switch for settings and config package from libnuke, improve docs

* fix: tests

* fix: do not upload to codeconv yet
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