You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 15, 2024. It is now read-only.
Hey @davfaulk can you also tell me how to list all services by resource tags?
I'm getting this error:
botocore.exceptions.ClientError: An error occurred (AccessDeniedException) when calling the GetTagValues operation: User: arn:aws:sts::678258727640:assumed-role/aws-cost-explorer-report-CostExplorerReportLambdaI-129HLOI5OJI1V/CostExplorerReportLambda is not authorized to perform: tag:GetTagValuesTotal chart
Wrote this piece of code:
def getResourcetags(self): tags = {} restag = boto3.client('resourcegroupstaggingapi', region_name='ap-south-1') response = restag.get_tag_values( PaginationToken='string', Key='string' ) # while 'PaginationToken' in response and response['PaginationToken']: # token = response['PaginationToken'] # response = restag.get_resources(ResourcesPerPage=50, PaginationToken=token) for response in response_iterator: for res in response['tags']: tags[res['Values']] = res return tags
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hey @davfaulk can you also tell me how to list all services by resource tags?
I'm getting this error:
botocore.exceptions.ClientError: An error occurred (AccessDeniedException) when calling the GetTagValues operation: User: arn:aws:sts::678258727640:assumed-role/aws-cost-explorer-report-CostExplorerReportLambdaI-129HLOI5OJI1V/CostExplorerReportLambda is not authorized to perform: tag:GetTagValuesTotal chart
Wrote this piece of code:
def getResourcetags(self): tags = {} restag = boto3.client('resourcegroupstaggingapi', region_name='ap-south-1') response = restag.get_tag_values( PaginationToken='string', Key='string' ) # while 'PaginationToken' in response and response['PaginationToken']: # token = response['PaginationToken'] # response = restag.get_resources(ResourcesPerPage=50, PaginationToken=token) for response in response_iterator: for res in response['tags']: tags[res['Values']] = res return tags
The text was updated successfully, but these errors were encountered: