diff --git a/bin/aws-iam-provision-postsync-hook.sh b/bin/aws-iam-provision-postsync-hook.sh index 2222f12..93b99b9 100755 --- a/bin/aws-iam-provision-postsync-hook.sh +++ b/bin/aws-iam-provision-postsync-hook.sh @@ -10,6 +10,11 @@ GO_TEMPLATE=' {{- range .items -}} {{- if not .status }}0{{- end }} {{- if ne .status.phase "Provisioned" }}0{{- end }} + {{- with .status.roles }} + {{- range . }} + {{- if ne .phase "Provisioned" }}0{{- end }} + {{- end }} + {{- end }} {{- end -}} '