A financial services company needs to grant its application developers command-line access to manage resources in several AWS accounts. The developers work from local workstations. To comply with security policies, the company must prevent the storage of long-term access keys on local machines, require multi-factor authentication (MFA), and ensure that permissions are automatically revoked when a developer leaves the company. The company currently manages developer identities in an external identity provider (IdP). Which solution should a solutions architect recommend to meet these requirements?
- Configure AWS IAM Identity Center to federate with the external identity provider, and instruct developers to configure the AWS CLI using the SSO command to obtain temporary credentials.Answer
- BCreate individual IAM users in each AWS account for the developers, generate long-term access keys, and configure the developers to store these credentials locally in their AWS CLI credentials file.
- CStore a shared IAM user's Access Key ID and Secret Access Key as plaintext String parameters in AWS Systems Manager Parameter Store, and have developers retrieve them programmatically when running CLI commands.
- DShare the AWS account root user credentials securely using an enterprise password manager, and enforce multi-factor authentication (MFA) on the root account for all developer CLI sessions.
Answer
Configure AWS IAM Identity Center to federate with the external identity provider, and instruct developers to configure the AWS CLI using the SSO command to obtain temporary credentials.
Configuring AWS IAM Identity Center to federate with the external identity provider is the recommended best practice. It enables single sign-on (SSO) and ensures that developer access is automatically revoked when their account is deactivated in the external identity provider. Using the AWS CLI integration with IAM Identity Center allows developers to authenticate and receive short-term credentials, eliminating the need to store long-term access keys on their local workstations.
Step-by-Step Solution
Key Concept
Federated access and temporary credentials using AWS IAM Identity Center