Automatic plan execution reports permissions
The following is a sample policy to attach if you configure automatic report generation for a Region switch plan. This policy includes permissions to write reports to Amazon S3, access CloudWatch alarm data, and retrieve child plan information for parent plans.
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": "s3:PutObject", "Resource": "arn:aws:s3:::your-bucket-name/*" }, { "Effect": "Allow", "Action": [ "cloudwatch:DescribeAlarms", "cloudwatch:DescribeAlarmHistory" ], "Resource": [ "arn:aws:cloudwatch:us-east-1:111122223333:alarm:*", "arn:aws:cloudwatch:us-west-2:111122223333:alarm:*" ] }, { "Effect": "Allow", "Action": [ "arc-region-switch:GetPlanExecution", "arc-region-switch:ListPlanExecutionEvents" ], "Resource": [ "arn:aws:arc-region-switch::111122223333:plan/child-plan-1:abcde1", "arn:aws:arc-region-switch::111122223333:plan/child-plan-2:fghij2" ] } ] }
The alarm resources must use a wildcard, even for metric alarms, because Region switch requests composite alarm information, and CloudWatch requires a wildcard resource to return it. For more information, see Amazon CloudWatch permissions reference in the Amazon CloudWatch User Guide.
Note: If you configure a customer managed AWS KMS key for Amazon S3 bucket encryption, you must also add
kms:GenerateDataKey and kms:Encrypt permissions for the key.