Skip to content

Commit

Permalink
use lib-ec2 security group function and remove own sg function
Browse files Browse the repository at this point in the history
  • Loading branch information
Guslington committed Aug 10, 2020
1 parent ad4259a commit 4d162e9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 33 deletions.
1 change: 1 addition & 0 deletions application-loadbalancer.cfhighlander.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
CfhighlanderTemplate do

# Name 'application-loadbalancer'
DependsOn 'lib-ec2'

Parameters do
ComponentParam 'EnvironmentName', 'dev', isGlobal: true
Expand Down
32 changes: 0 additions & 32 deletions ext/cfndsl/sg.rb

This file was deleted.

4 changes: 3 additions & 1 deletion tests/security_groups.test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ test_metadata:

ip_blocks:
local:
- 127.0.0.1/32
- ip: 127.0.0.1/32
desc: localhost access
- 127.0.0.2/32
public:
- 0.0.0.0/0
Expand All @@ -19,6 +20,7 @@ security_group_rules:
from: 443
ip_blocks:
- public
- local
desc: public HTTPS access
-
from: 8080
Expand Down

0 comments on commit 4d162e9

Please sign in to comment.