Skip to content

Commit

Permalink
Merge pull request #37 from envatopoho/poho-fix-delete-policy-version-id
Browse files Browse the repository at this point in the history
fix version-id parameter when deleting a policy version
  • Loading branch information
mtibben authored Aug 24, 2017
2 parents 150fb63 + 18fe73f commit 3c2750f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iamy/awsdiff.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ func (a *awsSyncCmdGenerator) updatePolicies() {
if fromPolicy.numberOfVersions >= MaxAllowedPolicyVersions {
a.cmds.Add("aws", "iam", "delete-policy-version",
"--policy-arn", Arn(toPolicy, a.to.Account),
"--policy-version", fromPolicy.oldestVersionId)
"--version-id", fromPolicy.oldestVersionId)
}

a.cmds.Add("aws", "iam", "create-policy-version",
Expand Down

0 comments on commit 3c2750f

Please sign in to comment.