A SysOps Administrator is configuring an AWS Service Catalog product that deploys an Amazon RDS DB instance. The deployment must encrypt the database storage volume using a customer managed AWS KMS key. The product is associated with a portfolio that has a launch constraint configured to use a specific IAM service role. During testing, when an end user attempts to provision the product, the deployment fails with a 'CloudFormation stack rollback occurred' error. How should the administrator resolve this failure?
- AAttach an IAM policy to the end user's IAM role granting full access to the customer managed KMS key, because the end user's permissions determine key access during product provisioning.
- Add the ARN of the Service Catalog launch constraint role to the key policy of the customer managed KMS key, permitting the role to use the key for cryptographic operations.Cevap
- CModify the trust policy of the KMS key to trust the end user's IAM role, and add sts:AssumeRole permissions for the launch constraint role to the end user's IAM policy.
- DInspect the CloudFormation events for ROLLBACK_IN_PROGRESS and wait for the stack to automatically retry the resource creation, as Service Catalog triggers a rebuild of failed nested stacks upon rollback completion.
Cevap
Add the ARN of the Service Catalog launch constraint role to the key policy of the customer managed KMS key, permitting the role to use the key for cryptographic operations.
When an AWS Service Catalog portfolio is configured with a launch constraint, AWS Service Catalog uses the associated service role's permissions to deploy the product's resources instead of the end user's credentials. Because the RDS database volume is encrypted using a customer managed KMS key, the service role must be granted usage permissions on that key. For customer managed KMS keys, permissions must be explicitly defined in the KMS key policy.
Adım Adım Çözüm
Anahtar Kavram
AWS Service Catalog Launch Constraints and KMS Key Policy Delegation
Tahmini Süre:2m 0s