Skip to content

Commit

Permalink
Merge pull request #168 from aws-samples/fix-ta-output
Browse files Browse the repository at this point in the history
Fixed CP - TA error message
  • Loading branch information
Yingtingng authored Dec 4, 2024
2 parents 6051d8b + 3c4ce71 commit 523f6a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions pyvenv.cfg

This file was deleted.

4 changes: 2 additions & 2 deletions utils/CustomPage/Pages/TA/TA.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ def build(self):
except ClientError as e:
error_code = e.response['Error']['Code']
if error_code == 'SubscriptionRequiredException':
errMsg = "Error: Your AWS account doesn't have the required Business or Enterprise Support plan for Trusted Advisor access."
errMsg = "Error: TA unable to generate. Your AWS account doesn't have the required Business or Enterprise Support plan for Trusted Advisor access."
self.taError = errMsg
print(errMsg)
return
elif error_code in ['AccessDeniedException', 'UnauthorizedOperation']:
# errMsg = "Error: You don't have sufficient permissions to access Trusted Advisor. Required IAM permissions: trustedadvisor:List*, trustedadvisor:Get*"
errMsg = e.response['Error']['Message']
errMsg = "Error: TA unable to generate. " + e.response['Error']['Message']
self.taError = errMsg
print(errMsg)
return
Expand Down

0 comments on commit 523f6a1

Please sign in to comment.