Error: {"errorMessage":"Your AWS credential for deployment profile Developer is configured to use the IAM role but access to that role was denied by IAM

,

I am getting this error when I use the dashboard to login using “sls login” and fater successful login I do “sls” again and I get:
Error: {“errorMessage”:“Your AWS credential for deployment profile Developer is configured to use the IAM role arn:aws:iam::NUMBER_HERE:role/PROJECT_HERE, but access to that role was denied by IAM. - Please contact support and provide this identifier to reference this issue - 1VS62LHW3T5P”}

I have replaced the role number and project name with capital letters but it’s just basically a copy and paste of what IAM gave me. Thanks!

3 Likes

I am having the same issues. Any recommendations on what is the issue?

1 Like

same here. when I deploy localy using cli serverless deploy --stage dev it works fine.
the problem is only when build is triggered from CI/CD

Having the same issue here, can anyone respond to this?