1 Answer
- Newest
- Most votes
- Most comments
-3
The error indicates an IAM permissions issue - the user 'mateojackson' lacks the required IAM permissions to perform the 'widget:GetWidget' action on 'my-example-widget' resource.
Solution:
-
Attach appropriate IAM policy to the user/role that includes:
- Action: "widget:GetWidget"
- Resource: ARN of "my-example-widget"
-
Verify the policy using IAM Policy Simulator to test permissions
Example Policy:
{ "Version": "2012-10-17", "Statement": [{ "Effect": "Allow", "Action": "widget:GetWidget", "Resource": "arn:aws:widget:region:account:my-example-widget" }] }
Source: AWS Documentation - IAM Troubleshooting
