Skip to content

Commit

Permalink
Skip role version comparison for unversioned roles
Browse files Browse the repository at this point in the history
  • Loading branch information
tbrisker committed Jun 30, 2022
1 parent 1535b67 commit 1768419
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/aws/policies.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,10 @@ func (c *awsClient) createRole(name string, policy string, permissionsBoundary s
}

func (c *awsClient) isRoleCompatible(name string, version string) (bool, error) {
// Ignore if there is no version
if version == "" {
return true, nil
}
output, err := c.iamClient.ListRoleTags(&iam.ListRoleTagsInput{
RoleName: aws.String(name),
})
Expand Down

0 comments on commit 1768419

Please sign in to comment.