I am facing an issue while trying to provision my EC2 instance through Terraform. However, to debug that issue I am trying to decode the encoded authorization failure message.
But when trying to call that sts decode API I am getting:
Error: A client error (AccessDenied) occurred when calling the DecodeAuthorizationMessage operation: User: xxx is not authorized to perform: (sts:DecodeAuthorizationMessage)
Now I don't know which specific permission should I give to my IAM user to be able to decode this message?
Updates:
