From c5a7afce44070e5008bdfbfeb39f1c3841d77d87 Mon Sep 17 00:00:00 2001 From: Amir Szekely Date: Wed, 26 Aug 2020 02:01:50 -0700 Subject: [PATCH] Fix AWS action name (#27205) The action name is `tag:GetResources`, not `tags:GetResources`. This creates a confusing error message that can have the user add the wrong permission to the IAM role. --- pkg/tsdb/cloudwatch/metric_find_query.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/tsdb/cloudwatch/metric_find_query.go b/pkg/tsdb/cloudwatch/metric_find_query.go index 22ade9c554f..f3429a5f0b5 100644 --- a/pkg/tsdb/cloudwatch/metric_find_query.go +++ b/pkg/tsdb/cloudwatch/metric_find_query.go @@ -694,7 +694,7 @@ func (e *cloudWatchExecutor) resourceGroupsGetResources(region string, filters [ resp.ResourceTagMappingList = append(resp.ResourceTagMappingList, page.ResourceTagMappingList...) return !lastPage }); err != nil { - return nil, fmt.Errorf("failed to call tags:GetResources, %w", err) + return nil, fmt.Errorf("failed to call tag:GetResources, %w", err) } return &resp, nil