Skip to content

Commit

Permalink
Mention quota in access denied error (#157)
Browse files Browse the repository at this point in the history
* Revert role name so CDK deploy doesn't fail

* Boto won't tell you about service limits, so add it to user friendly error

* revert iam.ts

* Moving period to friendly message
  • Loading branch information
douglas1850 authored Jun 19, 2024
1 parent ffbdbb4 commit 8bb9827
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/ml_space_lambda/utils/common_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def generate_exception_response(e, status_code=400):
},
{
"Codes": ["AccessDeniedException"],
"FriendlyMessage": "An administrator or owner has restricted access to this resource. If you need access, please contact a system administrator or owner of the resource for assistance",
"FriendlyMessage": "An administrator or owner has restricted access to this resource or this account has hit its service limit for this resource. If you need access or to increase the limits, please contact a system administrator or owner of the resource for assistance.",
},
]

Expand Down

0 comments on commit 8bb9827

Please sign in to comment.