I’m setting up a CI/CD pipeline using AWS CodePipeline and AWS CodeBuild to deploy a Docker application running on an Elastic Beanstalk instance. The Docker credentials are stored in AWS Secrets Manager, and are initialized as environment variables within the AWS CodeBuild Resource. Despite having the necessary IAM policies in place, I’m encountering an AccessDeniedException when CodeBuild tries to access the secrets.