Allow policy bootstrapping with nil "Resource" (#14359)

This commit is contained in:
Eric 2022-02-20 23:56:41 +00:00 committed by GitHub
parent ef8e952fc4
commit f357f65d04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,10 +8,10 @@
"Effect": "Allow",
"Action": [
"{{ $statement.actions | join "\",\n\"" }}"
],
]{{ if $statement.resources }},
"Resource": [
"{{ $statement.resources | join "\",\n\"" }}"
]
]{{ end }}
}{{ if lt $i $statements_length }},{{end }}
{{- end }}
]