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.
This commit is contained in:
1 parent
fcb3130076
commit
c5a7afce44
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user