An enterprise manages its multi-account environment using AWS Organizations. Users authenticate using a corporate SAML 2.0 Identity Provider (IdP) federated with a central Identity AWS account. From the Identity account, administrators use cross-account IAM roles to access target member accounts. A team of engineers requires continuous access to database migration tools in a specific member account for up to 8 hours. The Solutions Architect configures the maximum session duration for the cross-account role in the member account to 12 hours. However, engineers find that their sessions consistently expire and terminate after exactly 1 hour. Which solution should the Solutions Architect implement to allow the engineers to work uninterrupted for the required 8 hours?
- Implement AWS IAM Identity Center integrated with the corporate IdP, create a permission set configured with an 8-hour session duration, and assign it to the engineers' group for the target member account.Cevap
- BConfigure the corporate IdP to include the SAML attribute https://aws.amazon.com/SAML/Attributes/SessionDuration set to 28800 in the assertion, relying on this value to propagate through the cross-account role assumption to the member account.
- CAttach a Service Control Policy (SCP) to the member account's Organizational Unit (OU) that overrides the maximum session duration for the cross-account role, configuring the sts:DurationSeconds policy condition to allow up to 28800 seconds.
- DUpdate the developers' local shell scripts to pass the --duration-seconds 28800 parameter when invoking the aws sts assume-role command to assume the member account's role from the identity account.