A company's infrastructure team distributes standardized environments across multiple business units using AWS Service Catalog portfolios. An administrator is configuring a launch constraint in a spoke account using an IAM role named CatalogLaunchRole to enforce principal-based execution. When a team member attempts to provision a product, the deployment fails. The provisioning details reveal two distinct errors: one stating that the user is not authorized to pass the launch role, and another in the AWS CloudFormation event log showing a failure to create an IAM instance profile. Which of the following actions must be taken to resolve these deployment errors? (Select TWO.)
- Configure the developer's IAM identity policy to allow the iam:PassRole action targeting the CatalogLaunchRole resource.Answer
- Update the permissions policy of CatalogLaunchRole to include the iam:CreateInstanceProfile action.Answer
- CModify the trust relationship of CatalogLaunchRole to grant iam:PassRole permissions to the developer's IAM principal.
- DAdd the iam:CreateInstanceProfile action directly to the developer's IAM identity policy.
- EModify the CloudFormation stack policy in the spoke account to explicitly allow the creation of IAM resources.
Answer
Configure the developer's IAM identity policy to allow the iam:PassRole action targeting the CatalogLaunchRole resource, and update the permissions policy of CatalogLaunchRole to include the iam:CreateInstanceProfile action.
The correct actions are to configure the developer's IAM identity policy to allow the iam:PassRole action targeting the CatalogLaunchRole resource, and to update the permissions policy of CatalogLaunchRole to include the iam:CreateInstanceProfile action. When using an AWS Service Catalog launch constraint, the user launching the product must have the iam:PassRole permission to pass the specified launch role to the Service Catalog service. Additionally, because the launch role is used to execute the underlying CloudFormation deployment, that role must possess the permissions needed to create every resource in the template, including the IAM instance profile.
Step-by-Step Solution
Key Concept
Under AWS Service Catalog launch constraints, the user needs iam:PassRole permissions for the launch role, and the launch role itself must have all the permissions required to create the resources in the underlying CloudFormation template.