From 1aedb67621216def4f736e16e9856be644bf0af0 Mon Sep 17 00:00:00 2001 From: Naman Sharma Date: Thu, 12 Sep 2024 11:00:32 +0530 Subject: [PATCH] adding policy to cloudformation stack role of gen1 app --- provider/aws/formation/g1/app.json.tmpl | 15 +++++++++++++++ provider/aws/formation/rack.json | 15 +++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/provider/aws/formation/g1/app.json.tmpl b/provider/aws/formation/g1/app.json.tmpl index 25cdcfc66..0f5e3047a 100644 --- a/provider/aws/formation/g1/app.json.tmpl +++ b/provider/aws/formation/g1/app.json.tmpl @@ -171,6 +171,21 @@ } ] } + }, + { + "PolicyName": "PassRolePolicy", + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "iam:PassRole" + ], + "Resource": "*" + } + ] + } } ] } diff --git a/provider/aws/formation/rack.json b/provider/aws/formation/rack.json index b15fcd20a..843466fc8 100644 --- a/provider/aws/formation/rack.json +++ b/provider/aws/formation/rack.json @@ -1299,6 +1299,21 @@ } ] } + }, + { + "PolicyName": "PassRolePolicy", + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "iam:PassRole" + ], + "Resource": "*" + } + ] + } } ] }