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

Commit 2126997

Browse files
committed
feat: update stac-fastapi-geoparquet version
1 parent f916cac commit 2126997

File tree

8 files changed

+642
-681
lines changed

8 files changed

+642
-681
lines changed

.env.local

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
STACK_STAGE=test
22
STACK_OWNER=labs-375
3-
STACK_GEOPARQUET_KEY=naip.parquet

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
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
@@ -80,7 +80,6 @@ jobs:
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

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
We'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/).
66
We'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

data/config.toml

Lines changed: 0 additions & 1 deletion
This file was deleted.

infrastructure/aws/config.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from typing import Annotated, Optional
44

5-
from pydantic import field_validator
65
from 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."""

infrastructure/aws/stacks/constructs/geoparquet_api_lambda.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ lambda = ["mangum==0.19.0"]
1111

1212
[dependency-groups]
1313
deploy = [
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
3939
select = ["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]
4545
requires = ["setuptools"]

uv.lock

Lines changed: 635 additions & 662 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)