Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.

Commit af84e5e

Browse files
authored
fix: add ingress rule for pgstac (#69)
1 parent 32ca972 commit af84e5e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

infrastructure/aws/app.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
GatewayVpcEndpointAwsService,
2626
InstanceType,
2727
InterfaceVpcEndpointAwsService,
28+
Peer,
29+
Port,
2830
SubnetConfiguration,
2931
SubnetSelection,
3032
SubnetType,
@@ -234,6 +236,9 @@ def __init__(
234236
instance_type=InstanceType(config.pgstac_db_instance_type),
235237
removal_policy=RemovalPolicy.DESTROY,
236238
)
239+
# allow connections from any ipv4 to pgbouncer instance security group
240+
assert pgstac_db.security_group
241+
pgstac_db.security_group.add_ingress_rule(Peer.any_ipv4(), Port.tcp(5432))
237242
pgstac_api = PgStacApiLambda(
238243
self,
239244
"stac-api",

0 commit comments

Comments
 (0)