Skip to content

Commit a787a4d

Browse files
authored
fix: remove allow public subnets from lambdas (#481)
1 parent 138b53b commit a787a4d

File tree

4 files changed

+0
-10
lines changed

4 files changed

+0
-10
lines changed

app.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
118118
config=ingestor_config,
119119
db_secret=database.pgstac.secret,
120120
db_vpc=vpc.vpc,
121-
db_vpc_subnets=database.vpc_subnets,
122121
)
123122

124123
ingestor = ingestor_construct(
@@ -128,7 +127,6 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
128127
table=ingest_api.table,
129128
db_secret=database.pgstac.secret,
130129
db_vpc=vpc.vpc,
131-
db_vpc_subnets=database.vpc_subnets,
132130
)
133131

134132
git_sha = subprocess.check_output(["git", "rev-parse", "HEAD"]).decode().strip()

ingest_api/infrastructure/construct.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ def __init__(
2424
config: IngestorConfig,
2525
db_secret: secretsmanager.ISecret,
2626
db_vpc: ec2.IVpc,
27-
db_vpc_subnets=ec2.SubnetSelection,
2827
**kwargs,
2928
) -> None:
3029
super().__init__(scope, construct_id, **kwargs)
@@ -226,7 +225,6 @@ def __init__(
226225
table: dynamodb.ITable,
227226
db_secret: secretsmanager.ISecret,
228227
db_vpc: ec2.IVpc,
229-
db_vpc_subnets=ec2.SubnetSelection,
230228
**kwargs,
231229
) -> None:
232230
super().__init__(scope, construct_id, **kwargs)
@@ -255,7 +253,6 @@ def __init__(
255253
db_secret=db_secret,
256254
db_vpc=db_vpc,
257255
db_security_group=db_security_group,
258-
db_vpc_subnets=db_vpc_subnets,
259256
pgstac_version=config.db_pgstac_version,
260257
)
261258

@@ -267,7 +264,6 @@ def build_ingestor(
267264
db_secret: secretsmanager.ISecret,
268265
db_vpc: ec2.IVpc,
269266
db_security_group: ec2.ISecurityGroup,
270-
db_vpc_subnets: ec2.SubnetSelection,
271267
pgstac_version: str,
272268
code_dir: str = "./",
273269
) -> aws_lambda.Function:
@@ -285,8 +281,6 @@ def build_ingestor(
285281
timeout=Duration.seconds(180),
286282
environment={"DB_SECRET_ARN": db_secret.secret_arn, **env},
287283
vpc=db_vpc,
288-
vpc_subnets=db_vpc_subnets,
289-
allow_public_subnet=True,
290284
memory_size=2048,
291285
)
292286

raster_api/infrastructure/construct.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ def __init__(
4747
platform="linux/amd64",
4848
),
4949
vpc=vpc,
50-
allow_public_subnet=True,
5150
handler="handler.handler",
5251
memory_size=veda_raster_settings.memory,
5352
timeout=Duration.seconds(veda_raster_settings.timeout),

stac_api/infrastructure/construct.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ def __init__(
6969
file="stac_api/runtime/Dockerfile",
7070
),
7171
vpc=vpc,
72-
allow_public_subnet=True,
7372
memory_size=veda_stac_settings.memory,
7473
timeout=Duration.seconds(veda_stac_settings.timeout),
7574
environment=lambda_env,

0 commit comments

Comments
 (0)