File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -210,6 +210,7 @@ def __init__(
210210 stack_description : str ,
211211 s3_bucket : str ,
212212 regions : list [str ],
213+ deploy_branch : str | None = None ,
213214 ) -> None :
214215 """
215216 Initialize a CFNProjectMain instance.
@@ -219,6 +220,7 @@ def __init__(
219220 :param stack_description: description of the stack to deploy
220221 :param s3_bucket: see CFNMain
221222 :param regions: see CFNMain
223+ :param deploy_branch: git branch the script is allowed to deploy from
222224 """
223225 super ().__init__ (
224226 regions = regions ,
@@ -232,6 +234,7 @@ def __init__(
232234 f"arn:aws:iam::{ account_id } :role/cfn-user/CFNAllowDeployOf{ name } " ,
233235 f"Deploy{ name } Session" ,
234236 ),
237+ deploy_branch = deploy_branch ,
235238 )
236239 self .stack = Stack (
237240 name ,
You can’t perform that action at this time.
0 commit comments