Skip to content

Commit

Permalink
fix: openwire endpoints output
Browse files Browse the repository at this point in the history
  • Loading branch information
raykrishardi committed May 29, 2024
1 parent 7b44850 commit 116ff82
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions amazonmq.cfndsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,10 @@
}

Output(:OpenWireEndpoints) {
Value FnJoin(',', FnGetAtt(:Broker, :OpenWireEndpoints))
Export FnSub("${EnvironmentName}-#{export}-openwire-endpoint-1")
Value FnIf('IsMultiAZ', FnJoin(',', ["ssl://", Ref(:Broker), "-1", ".mq.", Ref("AWS::Region"), ".amazonaws.com:61617", ",", "ssl://", Ref(:Broker), "-2", ".mq.", Ref("AWS::Region"), ".amazonaws.com:61617"]), FnJoin(',', ["ssl://", Ref(:Broker), "-1", ".mq.", Ref("AWS::Region"), ".amazonaws.com:61617"]))
Export FnSub("${EnvironmentName}-#{export}-openwire-endpoints")
}

end


0 comments on commit 116ff82

Please sign in to comment.