Skip to content

Commit

Permalink
Update conflict mistake and add to build_ingest
Browse files Browse the repository at this point in the history
  • Loading branch information
sandrahoang686 committed Aug 12, 2024
1 parent 826f46a commit ca008d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ingest_api/infrastructure/construct.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ def __init__(
db_vpc=db_vpc,
db_security_group=db_security_group,
db_vpc_subnets=db_vpc_subnets,
pgstac_version=config.db_pgstac_version,
)

def build_ingestor(
Expand All @@ -305,6 +306,7 @@ def build_ingestor(
db_vpc: ec2.IVpc,
db_security_group: ec2.ISecurityGroup,
db_vpc_subnets: ec2.SubnetSelection,
pgstac_version: str,
code_dir: str = "./",
) -> aws_lambda.Function:
handler = aws_lambda.Function(
Expand All @@ -314,6 +316,7 @@ def build_ingestor(
path=os.path.abspath(code_dir),
file="ingest_api/runtime/Dockerfile",
platform="linux/amd64",
build_args={"PGSTAC_VERSION": pgstac_version},
),
handler="ingestor.handler",
runtime=aws_lambda.Runtime.PYTHON_3_9,
Expand Down
2 changes: 1 addition & 1 deletion ingest_api/runtime/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ orjson>=3.6.8
psycopg[binary,pool]>=3.0.15
pydantic_ssm_settings>=0.2.0
pydantic>=1.10.12
pyjwt>=2.8.0
pypgstac==0.7.4
python-multipart==0.0.7
requests>=2.27.1
s3fs==2023.3.0
Expand Down

0 comments on commit ca008d4

Please sign in to comment.