Skip to content

Commit

Permalink
Merge pull request #198 from guardian/sbd-add-tags-for-devx-rds-backup
Browse files Browse the repository at this point in the history
Enable RDS backups with AWS Backup
  • Loading branch information
srbd authored Feb 1, 2024
2 parents 02cf747 + cf90023 commit aca3441
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion postgres/cdk/lib/giant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
} from '@guardian/cdk/lib/constructs/core';
import { GuVpc, SubnetType } from '@guardian/cdk/lib/constructs/ec2/vpc';
import type { App } from 'aws-cdk-lib';
import { CfnOutput, Duration, SecretValue } from 'aws-cdk-lib';
import { CfnOutput, Duration, SecretValue, Tags } from 'aws-cdk-lib';
import {
InstanceClass,
InstanceSize,
Expand Down Expand Up @@ -78,6 +78,9 @@ export class Giant extends GuStack {
}),
});

// Enable nightly backups (via https://github.com/guardian/aws-backup)
Tags.of(database).add("devx-backup-enabled", "true");

const dbAccessSecurityGroup = new SecurityGroup(this, 'db-access', {
vpc: vpc,
allowAllOutbound: false,
Expand Down

0 comments on commit aca3441

Please sign in to comment.