Unable to deploy code onto AWS EC2 instance from AWS CodeDeploy

Viewed 161

I am trying to implement CI/CD using AWS CodeBuild, and trying to deploy an application onto an AWS EC2 instance, but the code deployment is failing and showing the error below:

The IAM role arn:aws:iam::341502448925:role/CodeDeployServiceRole does not give you permission to perform operations in the following AWS service: AmazonEC2

I have even created service role in the IAM console but it's not working for me. Someone let me know how can I resolve this issue.

1 Answers
Related