Skip to content

Commit

Permalink
fix conditional outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Guslington committed May 4, 2021
1 parent 01fafc1 commit f211327
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions sftp.cfndsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -616,15 +616,19 @@
}

Output(:SftpServerId) {
FnIf(:TransferServerEnabled,
Value(FnGetAtt(:SftpServer, :ServerId)),
""
)
Value(
FnIf(:TransferServerEnabled,
FnGetAtt(:SftpServer, :ServerId),
""
)
)
}
Output(:SftpServerEndpoint) {
FnIf(:TransferServerEnabled,
Value(FnJoin('.',[ FnGetAtt(:SftpServer, :ServerId), 'server.transfer', Ref('AWS::Region'), 'amazonaws.com' ])),
""
Value(
FnIf(:TransferServerEnabled,
FnJoin('.',[ FnGetAtt(:SftpServer, :ServerId), 'server.transfer', Ref('AWS::Region'), 'amazonaws.com' ]),
""
)
)
}

Expand Down

0 comments on commit f211327

Please sign in to comment.