A company wants to integrate a third-party security auditing application that runs on an external, non-AWS platform. The application requires read-only access to the company's AWS resource configurations. Which of the following is the AWS-recommended best practice to grant this access securely?
- Create an IAM role with a trust policy that allows the third-party account to assume it, and attach a read-only policy to the role.Answer
- BGenerate access keys for the AWS account root user and share them with the third-party vendor to ensure comprehensive access.
- CCreate a dedicated IAM user, generate long-term access keys, and share these credentials directly with the third-party vendor.
- DContact AWS Support and request that they modify the physical data center firewall to allow the external application's IP address to bypass AWS authentication.
Answer
Create an IAM role with a trust policy that allows the third-party account to assume it, and attach a read-only policy to the role.
Creating an IAM role with a trust policy is the secure and recommended way to grant access to third-party accounts or external applications. It allows the external service to temporarily assume the role and access the necessary resources, ensuring that no long-term credentials (like passwords or access keys) are shared or stored externally.
Step-by-Step Solution
Key Concept
Delegating AWS resource access to third-party applications using temporary credentials via IAM roles.