AccessDenied when calling the CompleteLifecycleAction operation

I'm troubleshooting the issues in the lecture about Lifecycle hooks, and during execution command on ec2 instance I'm having the following error:
aws autoscaling complete-lifecycle-action --lifecycle-action-result CONTINUE --instance-id $INSTANCE_ID --lifecycle-hook-name devops-pro-hook --auto-scaling-group-name devops-pro --region us-west-2

An error occurred (AccessDenied) when calling the CompleteLifecycleAction operation: User: arn:aws:sts::002952007903:assumed-role/S3FullAccess/i-022d600980f5620e3 is not authorized to perform: autoscaling:CompleteLifecycleAction on resource: arn:aws:autoscaling:us-west-2:002952007903:autoScalingGroup:9088a86a-cfcd-4a93-a487-cc992ccd8150:autoScalingGroupName/devops-pro



  • post-author-pic
    Oleksandr Z
    11-27-2018

    I've found the issue. But once again, the video is very ambiguous. On the video instructor set IAM role with name 'S3Access4EC2" without explaining what exactly in this role! Of course, only with S3 permissions, you can not run the script.  Guyz, I'm getting crazy with this course. Why, why so many issues?

Looking For Team Training?

Learn More