A SysOps administrator is configuring an AWS Database Migration Service (DMS) replication task to migrate database schemas to Amazon S3. The administrator creates a custom IAM role named DMSS3AccessRole to provide the required write access to the target S3 bucket. When the administrator attempts to save the DMS target endpoint with this role attached, the AWS Management Console displays an 'Access Denied' error. Which combination of actions must the SysOps administrator take to resolve this issue? (Select TWO.)
- Add a policy statement to the administrator's IAM policy that allows the iam:PassRole action on the DMSS3AccessRole resource.Cevap
- Update the trust policy of the DMSS3AccessRole role to allow the dms.amazonaws.com service principal to perform the sts:AssumeRole action.Cevap
- CAdd a policy statement to the administrator's IAM policy that allows the sts:AssumeRole action on the DMSS3AccessRole resource.
- DUpdate the trust policy of the DMSS3AccessRole role to allow the administrator's IAM identity to perform the iam:PassRole action.
- EAdd a policy statement to the administrator's IAM policy that allows the iam:PassRole action on the dms.amazonaws.com service principal.
Cevap
Add a policy statement to the administrator's IAM policy that allows the iam:PassRole action on the DMSS3AccessRole resource, and update the trust policy of the DMSS3AccessRole role to allow the dms.amazonaws.com service principal to perform the sts:AssumeRole action.
To successfully delegate permissions to AWS DMS, two configurations are required. First, the administrator must have permission to delegate the role. This is done by adding iam:PassRole on the DMSS3AccessRole resource to the administrator's policy. Second, AWS DMS must be authorized to assume the role. This is achieved by updating the trust policy of the role to allow the dms.amazonaws.com service principal to execute sts:AssumeRole.
Adım Adım Çözüm
Anahtar Kavram
IAM Role Delegation and Service Authorization using iam:PassRole and sts:AssumeRole