developmentseed / eoAPI

[Active Development] Earth Observation API (Metadata, Raster and Vector services)
https://eoapi.dev
MIT License
196 stars 21 forks source link

The infrastructure/DEPLOYMENT.md instructions do not work #100

Closed charalamm closed 1 year ago

charalamm commented 1 year ago

Problem description

The instructions in infrastructure/DEPLOYMENT.md did not work and the CDK_EOAPI_DB_PGSTAC_VERSION is outdated.

Specifically:

Expected Output

Deploy eoAPI in aws.

Environment Information

vincentsarago commented 1 year ago

@charalamm thanks for opening the issue and also a PR 🙏

when writing the documentation I assumed we could have the env variable provided in a onliner

CDK_EOAPI_STAGE=staging echo ${CDK_EOAPI_STAGE}
>> 

But as shown in ☝️ , it doesn't work 🤦 so to fix this you need to do 👇

CDK_EOAPI_STAGE=staging CDK_EOAPI_DB_PGSTAC_VERSION=0.7.1 npm --prefix infrastructure/aws run cdk -- deploy eoAPI-staging

For the bootstrap part, I'm not sure what's going on but I'll have a look

charalamm commented 1 year ago

@vincentsarago It works now with the changes in infrastructure/aws. Thank you!

vincentsarago commented 1 year ago

NOTE: we still need to figure how to access external stac assets. for now it might only work with assets stored in AWS S3 in the same region

reg: https://github.com/developmentseed/eoAPI/pull/60

charalamm commented 1 year ago

Noted. Thanks!