AWS Error: "Access Denied" in CodeDeploy after Jenkins build
<p>I've set up Jenkins on an EC2 instance that runs build when changes pushed to the master branch in github. Once the build on jenkins passes, it triggers a process to zip the source code and puts it in a specific S3 bucket. Then the CodeDeploy application that Jenkins is aware of in the configuration and triggers a deploy to tries to get the source code ZIP from S3, but it raises an error <strong>Access Denied</strong>. It seems like the IAM role does not have the right access and permissions to download the ZIP from S3. </p>

<p>My issue is trying to understand the IAM role, its relationship to Jenkins user and the IAM Service Role? How do I set up the permissions and who should get these permissions? Please advise and help me understand this. </p>