Skip to content
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

Recoverdynamodb #20

Merged
merged 5 commits into from
Feb 28, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
dynamodb fis
  • Loading branch information
pethers committed Feb 28, 2023
commit 8c91254895a66f710bdecac6d8d35b0329060d44
16 changes: 13 additions & 3 deletions cloudformation/disaster-recovery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Parameters:
Description: 'DynamoDBSourceTableBackupArn to restore from backup'
RecoveryPointDateTime:
Type: String
Description: 'RecoveryPointDateTime to restore from pitr'
Description: 'RecoveryPointDateTime to restore from pitr in time in format YYYY-MM-DDTHH:MM:SSZ'
Resources:
AWSResilienceHubSwitchLambdaVersionInAliasSOPAssumeRole:
Type: AWS::IAM::Role
Expand Down Expand Up @@ -328,8 +328,18 @@ Resources:
ArnEquals:
'iam:PolicyARN':
- !Ref AwsFisApiPolicyDenyApiRoleLambda
- Sid: DynanodbRecoverFis
Effect: Allow
Action:
- 'dynamodb:*'
- 'kinesis:*'
- 'ssm:*'


- 'iam:PassRole'
- 'cloudwatch:*'
- 'application-autoscaling::*'
- 'ssm:*'
Resource: '*'
FisDenyApigatewatLambdaTemplate:
Type: AWS::FIS::ExperimentTemplate
DeletionPolicy: Delete
Expand Down Expand Up @@ -422,7 +432,7 @@ Resources:
{
"DynamoDBTableSourceName":"global-table",
"DynamoDBSourceTableBackupArn":"${DynamoDBSourceTableBackupArn}",
"DynamoDBTableTargetName":"global-table-backup",
"DynamoDBTableTargetName":"global-table",
"CopyAllProperties":"True",
"AutomationAssumeRole":"arn:aws:iam::${AWS::AccountId}:role/${SsmAutomationRole}"
}
Expand Down