Skip to content

Commit

Permalink
BAU: Add snapshot retention window to Redis cache
Browse files Browse the repository at this point in the history
The snapshot retention window for the AWS::ElastiCache::ReplicationGroup
is 0 by default and therefore not enabled.

This sets the window to 7 days retention so we have data backups and
dynamically sets the SnapshottingClusterId variable to the correct one
in each environment.
  • Loading branch information
MarcUsher committed Feb 17, 2025
1 parent 17d4891 commit 3870a2e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions copilot/fsd-form-runner-adapter/addons/form-runner-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ Resources:
- !GetAtt "FormRunnerAdapterRedisSecurityGroup.GroupId"
Engine: redis
NumCacheClusters: 2
SnapshotRetentionLimit: 7
SnapshottingClusterId: !Sub '${FormRunnerAdapterRedisReplicationGroup.PrimaryClusterId}-001'

# Redis endpoint stored in SSM so that other services can retrieve the endpoint.
FormRunnerAdapterRedisEndpointAddressParam:
Expand Down

0 comments on commit 3870a2e

Please sign in to comment.