Skip to content

Commit 0b11726

Browse files
committed
Merge branch 'morosi-check' into 'master'
Add deploy_branch parameter to CFNProjectMain See merge request it/e3-aws!55
2 parents 4a5332a + 405bcc8 commit 0b11726

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/e3/aws/troposphere/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)