Allow PostgreSQL port for tunneling restricted to developer IP
All checks were successful
AWS Deploy on Push / build (push) Successful in 1m35s
All checks were successful
AWS Deploy on Push / build (push) Successful in 1m35s
This commit is contained in:
@@ -70,6 +70,13 @@ class IptvUpdaterStack(Stack):
|
|||||||
"Allow SSH traffic"
|
"Allow SSH traffic"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Allow PostgreSQL port for tunneling restricted to developer IP
|
||||||
|
security_group.add_ingress_rule(
|
||||||
|
ec2.Peer.ipv4("47.189.88.48/32"), # Developer IP
|
||||||
|
ec2.Port.tcp(5432),
|
||||||
|
"Allow PostgreSQL traffic for tunneling"
|
||||||
|
)
|
||||||
|
|
||||||
# Key pair for IPTV Updater instance
|
# Key pair for IPTV Updater instance
|
||||||
key_pair = ec2.KeyPair(
|
key_pair = ec2.KeyPair(
|
||||||
self,
|
self,
|
||||||
|
|||||||
Reference in New Issue
Block a user