Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error handling for missing IAM policy action for assumed IAM role #21

Open
DjangoFett opened this issue Jan 28, 2019 · 0 comments

Comments

@DjangoFett
Copy link

Would be nice to throw an error when an action is missing from an IAM policy instead of failing to run.
Even better would be to have some sort of error displayed on the UI to save the trouble of logging into the container for find that it failed to run.

Added the error in question below that I found while installing this the first time.

  File "/opt/staging/limits.py", line 68, in <module>
    dms_limits = dms.describe_account_attributes()
  File "/usr/local/lib/python3.4/site-packages/botocore/client.py", line 314, in
 _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/usr/local/lib/python3.4/site-packages/botocore/client.py", line 612, in
 _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (AccessDeniedException) when
calling the DescribeAccountAttributes operation: User: arn:aws:sts::[ACCOUNT]
:assumed-role/[ROLENAME]/limit_dashboard is not authorized to perform: dms:Des
cribeAccountAttributes
HurielHernandez added a commit to HurielHernandez/aphelion that referenced this issue Apr 19, 2019
HurielHernandez added a commit to HurielHernandez/aphelion that referenced this issue May 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant