Skip to content

Commit

Permalink
add pgstac version to ingest build api lambda params
Browse files Browse the repository at this point in the history
  • Loading branch information
anayeaye committed Aug 8, 2024
1 parent e41cf82 commit ea88a2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ingest_api/infrastructure/construct.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def __init__(
"db_secret": db_secret,
"db_vpc": db_vpc,
"db_security_group": db_security_group,
"pgstac_version": config.db_pgstac_version
}

if config.raster_data_access_role_arn:
Expand Down Expand Up @@ -124,6 +125,7 @@ def build_api_lambda(
db_vpc: ec2.IVpc,
db_security_group: ec2.ISecurityGroup,
data_access_role: Union[iam.IRole, None] = None,
pgstac_version: str,
code_dir: str = "./",
) -> apigateway.LambdaRestApi:
stack_name = Stack.of(self).stack_name
Expand All @@ -142,7 +144,6 @@ def build_api_lambda(
)
],
)
pgstac_version = IngestorConfig.db_pgstac_version

handler = aws_lambda.Function(
self,
Expand Down

0 comments on commit ea88a2c

Please sign in to comment.