Skip to content

Commit

Permalink
Added output/export for security group
Browse files Browse the repository at this point in the history
  • Loading branch information
tarunmenon95 committed Sep 14, 2023
1 parent 65019af commit 3cfca19
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions amazonmq.cfndsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
})
end

Output("SecurityGroup#{safe_component_name}") {
Value(Ref("SecurityGroup#{safe_component_name}"))
Export FnSub("${EnvironmentName}-#{export}-SecurityGroup")
}

# Plan to be depreciated at a further point
security_groups.each do |name, sg|
sg['ports'].each do |port|
Expand Down

0 comments on commit 3cfca19

Please sign in to comment.