A company is migrating its on-premises web application to AWS. The application will run on Amazon ECS containers. The solutions architect must design a security strategy to grant database administrators (DBAs) administrative access to the Amazon RDS DB instances using their existing corporate identity provider (IdP). Furthermore, the ECS application containers must securely access the database credentials, which must be rotated every 30 days without hardcoding them in the application or storing them in plaintext.
Which combination of actions should the solutions architect take to meet these security requirements?
- Configure AWS IAM Identity Center to federate the corporate identity provider, granting DBAs federated access to manage RDS. Store the database credentials in AWS Secrets Manager, enable automatic 30-day rotation, and grant the ECS task execution role permissions to retrieve the secret.Answer
- BCreate individual IAM users for each DBA in the AWS account, configure long-term credentials for AWS Management Console access, and manually synchronize their passwords with the corporate identity provider. Store the database credentials in AWS Secrets Manager with automatic 30-day rotation.
- CConfigure AWS IAM Identity Center to federate the corporate identity provider for DBA access. Store the database credentials as a plaintext String parameter in AWS Systems Manager Parameter Store to avoid KMS encryption overhead, and reference the parameter in the ECS task definition.
- DInstruct DBAs to use the AWS account root user credentials to perform administrative database tasks to ensure uninterrupted access. Store the database credentials in AWS Secrets Manager, and rely on AWS KMS automatic key rotation to automatically update the database password.
Answer
Configure AWS IAM Identity Center to federate the corporate identity provider for DBA access, store the database credentials in AWS Secrets Manager with automatic 30-day rotation, and grant the ECS task execution role permissions to retrieve the secret.
The correct solution integrates AWS IAM Identity Center with the existing corporate identity provider to handle DBA access securely without creating long-term IAM users. It also utilizes AWS Secrets Manager to encrypt, store, and automatically rotate database credentials every 30 days, while using the ECS task execution role to dynamically retrieve the secret at runtime.
Step-by-Step Solution
Key Concept
Centralized identity federation and secure, automated secrets management