Plan execution role trust policy
Region switch assumes your plan's execution role to perform actions on your behalf. This trust policy authorizes the
arc-region-switch.amazonaws.com service principal to assume the role.
Region switch assumes the execution role in two cases:
-
Region switch assumes the execution role during plan evaluation to validate your plan configuration. For the complete list of warnings surfaced during plan evaluation, see Plan evaluation for Region switch plans.
-
Region switch assumes the execution role during plan execution when an execution block acts on resources in your account, such as database failover, Auto Scaling capacity, Amazon ECS or Amazon EKS capacity, Lambda invocations, or routing-control blocks.
If the trust policy is missing, Region switch cannot assume the role. During plan evaluation, a warning is generated stating that the role cannot be assumed. During execution, any execution block that requires the execution role to act on resources in your account fails. The error states that the role could not be assumed.
The manual approval and RouteĀ 53 health check execution blocks do not assume the execution role as part of a plan execution. As a result, a plan composed only of these blocks can execute successfully even if the trust policy is missing. We recommend applying the trust policy to your execution role so that plan evaluation can identify any issues with your plan configuration.