Skip to content

Commit

Permalink
Merge pull request #1065 from guardian/aa/backup
Browse files Browse the repository at this point in the history
feat: Enable backup of DynamoDb table
  • Loading branch information
akash1810 authored Nov 9, 2023
2 parents 5cf91c7 + 3d38b7f commit 13f00bf
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
1 change: 1 addition & 0 deletions cdk/bin/cdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ new SecurityHQ(app, "security-hq", {
stage: "PROD",
cloudFormationStackName: "security-hq-PROD",
env: { region: "eu-west-1" },
withBackup: true,
});
4 changes: 4 additions & 0 deletions cdk/lib/__snapshots__/security-hq.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1131,6 +1131,10 @@ exports[`HQ stack matches the snapshot 1`] = `
},
"TableName": "security-hq-iam",
"Tags": [
{
"Key": "devx-backup-enabled",
"Value": "true",
},
{
"Key": "gu:cdk:version",
"Value": "TEST",
Expand Down
1 change: 1 addition & 0 deletions cdk/lib/security-hq.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ describe("HQ stack", () => {
const stack = new SecurityHQ(app, "security-hq", {
stack: "security",
stage: "PROD",
withBackup: true,
});
expect(Template.fromStack(stack).toJSON()).toMatchSnapshot();
});
Expand Down
16 changes: 8 additions & 8 deletions cdk/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"synth": "cdk synth --path-metadata false --version-reporting false"
},
"devDependencies": {
"@guardian/cdk": "52.1.0",
"@guardian/cdk": "52.2.0",
"@guardian/eslint-config-typescript": "^7.0.0",
"@types/jest": "^29.5.7",
"@types/node": "20.8.10",
Expand Down

0 comments on commit 13f00bf

Please sign in to comment.