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:
Amir Szekely 2020-08-26 02:01:50 -07:00 committed by GitHub
parent fcb3130076
commit c5a7afce44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -694,7 +694,7 @@ func (e *cloudWatchExecutor) resourceGroupsGetResources(region string, filters [
resp.ResourceTagMappingList = append(resp.ResourceTagMappingList, page.ResourceTagMappingList...) resp.ResourceTagMappingList = append(resp.ResourceTagMappingList, page.ResourceTagMappingList...)
return !lastPage return !lastPage
}); err != nil { }); 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 return &resp, nil