This repository was archived by the owner on Jul 21, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 8 files changed +642
-681
lines changed Expand file tree Collapse file tree 8 files changed +642
-681
lines changed Original file line number Diff line number Diff line change 11STACK_STAGE = test
22STACK_OWNER = labs-375
3- STACK_GEOPARQUET_KEY = naip.parquet
Original file line number Diff line number Diff line change 5151 STACK_OWNER : labs-375
5252 STACK_RELEASE : ${{ github.event.release.tag_name }}
5353 STACK_BUCKET_NAME : stac-fastapi-geoparquet-labs-375
54- STACK_GEOPARQUET_KEY : naip.parquet
54+ STACK_COLLECTIONS_KEY : collections.json
5555 STACK_RATE_LIMIT : 10
5656 environment :
5757 name : development
8080 id : deploy
8181 run : |
8282 uv run --only-group deploy npm run cdk -- deploy --require-approval never --all
83- aws s3 cp ../../data/naip.parquet s3://${STACK_BUCKET_NAME}/${STACK_GEOPARQUET_KEY}
8483 API_URL=$(aws cloudformation describe-stacks --stack-name ${STACK_NAME}-${STACK_STAGE}-app --query 'Stacks[0].Outputs[?OutputKey==`GeoparquetApiURL`].OutputValue' --output text)
8584 echo "::notice title=API URL::${API_URL}"
8685 echo api_url=$API_URL >> $GITHUB_OUTPUT
Original file line number Diff line number Diff line change 55We've built a [ service] ( https://github.com/stac-utils/stac-fastapi-geoparquet ) to search [ stac-geoparquet] ( https://github.com/stac-utils/stac-geoparquet ) with a STAC API [ query] ( https://api.stacspec.org/v1.0.0/item-search/ ) .
66We've got two STAC API servers deployed for our experiments:
77
8- - ** stac-fastapi-geoparquet** : < https://4y16a90iwk .execute-api.us-west-2.amazonaws.com/ >
9- - ** stac-fastapi-pgstac** : < https://qwwahjp1ki .execute-api.us-west-2.amazonaws.com/ >
8+ - ** stac-fastapi-geoparquet** : < https://1sotk6vb0d .execute-api.us-west-2.amazonaws.com/ >
9+ - ** stac-fastapi-pgstac** : < https://31ukqsqah7 .execute-api.us-west-2.amazonaws.com/ >
1010
1111## Usage
1212
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 22
33from typing import Annotated , Optional
44
5- from pydantic import field_validator
65from pydantic_settings import BaseSettings
76
87
@@ -16,9 +15,7 @@ class Config(BaseSettings):
1615 release : str = "dev"
1716
1817 bucket_name : str = "stac-fastapi-geoparquet-lab"
19- geoparquet_key : Annotated [
20- Optional [str ], "storage key for the geoparquet file within the S3 bucket"
21- ] = None
18+ collections_key : str = "collections.json"
2219
2320 timeout : int = 30
2421 memory : int = 3009
@@ -40,12 +37,6 @@ class Config(BaseSettings):
4037 pgstac_db_allocated_storage : int = 5
4138 pgstac_db_instance_type : str = "t3.micro"
4239
43- @field_validator ("geoparquet_key" )
44- def validate_geoparquet_key (cls , v : str | None ) -> str :
45- if v is None :
46- raise ValueError ("geoparquet_key must be provided" )
47- return v
48-
4940 @property
5041 def is_prod (self ) -> bool :
5142 """Determine if configuration applies to production."""
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ def __init__(
3838 file = "infrastructure/aws/lambda/Dockerfile" ,
3939 ),
4040 environment = {
41- "STAC_FASTAPI_GEOPARQUET_HREF " : f"s3://{ config .bucket_name } /{ config .geoparquet_key } " ,
41+ "STAC_FASTAPI_COLLECTIONS_HREF " : f"s3://{ config .bucket_name } /{ config .collections_key } " ,
4242 },
4343 )
4444 bucket .bucket .grant_read (api_lambda )
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ lambda = ["mangum==0.19.0"]
1111
1212[dependency-groups ]
1313deploy = [
14- " aws-cdk-lib= =2.130.0" ,
14+ " aws-cdk-lib> =2.130.0" ,
1515 " constructs>=10.3.0" ,
1616 " eoapi-cdk>=8.0.2" ,
1717 " pydantic>=2.10.4" ,
@@ -39,7 +39,7 @@ ignore_missing_imports = true
3939select = [" E" , " F" , " I" ]
4040
4141[tool .uv .sources ]
42- stac-fastapi-geoparquet = { git = " https://github.com/stac-utils/stac-fastapi-geoparquet" , rev = " b992a844f348635817e2db3500e28e4da05104f0 " }
42+ stac-fastapi-geoparquet = { git = " https://github.com/stac-utils/stac-fastapi-geoparquet" , rev = " 5d8b44423bb98b875a78312646ff76fe6823076d " }
4343
4444[build-system ]
4545requires = [" setuptools" ]
You can’t perform that action at this time.
0 commit comments