Skip to content

Commit b3a4293

Browse files
committed
SFTPUserRole and SFTPUserScopeDownPolicy should key off use_sftp_condition
1 parent 5c6288f commit b3a4293

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stack/assets.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,7 @@
436436
# This is for applying when adding users to the transfer server. It's not used directly in the stack creation,
437437
# other than adding it to IAM for later use.
438438
"SFTPUserScopeDownPolicy",
439+
Condition=use_sftp_condition,
439440
PolicyDocument=dict(
440441
Version="2012-10-17",
441442
Statement=If(
@@ -475,6 +476,7 @@
475476
# to be used later when adding users to the transfer server.
476477
"SFTPUserRole",
477478
template=template,
479+
Condition=use_sftp_condition,
478480
AssumeRolePolicyDocument=dict(
479481
Statement=[
480482
dict(

0 commit comments

Comments
 (0)