Skip to content
This repository was archived by the owner on Sep 30, 2020. It is now read-only.

Commit 40608cb

Browse files
mateiidavidmumoshu
authored andcommitted
Added role to IAMManagedPolicyController if useStrict is true (#1448)
Signed-off-by: Matei David <[email protected]>
1 parent 5310cf5 commit 40608cb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

core/controlplane/config/templates/stack-template.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,12 @@
231231
"Type" : "AWS::IAM::ManagedPolicy",
232232
"Properties" : {
233233
"Description" : "Policy for managing kube-aws k8s controllers",
234-
"Path" : "/",
234+
"Path" : "/",
235+
{{ if and (.Controller.IAMConfig.Role.UseStrict) (.Controller.IAMConfig.Role.Name) }}
236+
"Roles" : [
237+
"{{.Controller.IAMConfig.Role.Name}}"
238+
],
239+
{{ end }}
235240
"PolicyDocument" : {
236241
"Version":"2012-10-17",
237242
"Statement": [

0 commit comments

Comments
 (0)