Skip to content

Commit

Permalink
Merge pull request #8 from theonestack/feature/export-sg
Browse files Browse the repository at this point in the history
Feature/export sg
  • Loading branch information
tarunmenon95 committed Sep 14, 2023
2 parents 65019af + 11f2b6d commit 4129fbc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 20 deletions.
23 changes: 3 additions & 20 deletions .github/workflows/rspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,6 @@ name: cftest
on: [push, pull_request]

jobs:
test:
name: test
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: set up ruby 2.7
uses: actions/setup-ruby@v1
with:
ruby-version: 2.7.x
- name: install gems
run: gem install cfhighlander rspec
- name: set cfndsl spec
run: cfndsl -u
- name: cftest
run: rspec
env:
AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ap-southeast-2
rspec:
uses: theonestack/shared-workflows/.github/workflows/rspec.yaml@main
secrets: inherit
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 4129fbc

Please sign in to comment.