A SysOps administrator is configuring a launch constraint for an AWS Service Catalog product using a custom IAM role named `CatalogProvisioningRole`. The role has the necessary policies attached to provision resources. When the administrator attempts to apply the launch constraint to the product in the AWS Service Catalog portfolio, the console returns an access denied error. Additionally, in a previous attempt where the constraint was active, the product provisioning failed and the CloudFormation stack rolled back because the service could not assume the role.
Which two actions should the administrator take to resolve these issues? (Choose two.)
- Attach an IAM policy to the administrator's IAM identity that grants the `iam:PassRole` permission for the `CatalogProvisioningRole` resource.Answer
- Configure the trust policy of the `CatalogProvisioningRole` to allow the `servicecatalog.amazonaws.com` service principal to assume the role.Answer
- CModify the administrator's IAM policy to grant the `sts:AssumeRole` permission on the `CatalogProvisioningRole` resource.
- DUpdate the CloudFormation template's metadata to disable rollback on failure so that the deployment can complete despite the permission issues.
- EAttach an IAM policy to the administrator's IAM identity that grants `servicecatalog:AssociateConstraint` permissions on all portfolio resources.
Answer
To resolve the issues, the administrator must attach an IAM policy to their identity that grants the `iam:PassRole` permission for the launch constraint role, and configure the trust policy of that role to allow the `servicecatalog.amazonaws.com` service principal to assume it.
The correct options address both issues. First, the administrator must have `iam:PassRole` permissions to associate the role with the launch constraint. Second, the role's trust policy must allow `servicecatalog.amazonaws.com` to assume the role to resolve the assumption failure during product deployment.
Step-by-Step Solution
Key Concept
AWS Service Catalog Launch Constraints require both the administrator to have `iam:PassRole` permissions and the IAM role's trust policy to trust the Service Catalog service principal.