NOTE: This repository is being sunsetted. Please do not open any new issues or PRs on this repository; use https://github.com/NASA-IMPACT/veda-data instead. Once all issues are transferred from this repository to veda-data, this repository will be archived.
This repo houses function code and deployment code for producing cloud-optimized data products and STAC metadata for interfaces such as https://github.com/NASA-IMPACT/delta-ui.
See get-docker
nvm install 17.3.0
nvm use 17.3.0
npm install -g aws-cdkpip install poetryThis project uses AWS CDK to deploy AWS resources to the cloud.
ENV="<dev/staging/prod>"
COGNITO_APP_SECRET="<secret-name-for-pgstac-access>"
APP_NAME="veda-data-pipelines"
STAC_INGESTOR_URL="<url-for-ingestor-api>"
EXTERNAL_ROLE_ARN="<arn-for-external-role-permissions>"Note: You can use the handy env.sample.sh script to set these variables. Just rename the file to env.sh and populate it with appropriate values. Then run the following commands:
chmod +x env.sh
source env.sh <dev/staging>If anything other than dev/stage is provided as the env, the dev credentials are used (for now).
# deploy
poetry run deploy
# destroy
poetry run destroy- Go to
deploy/directory - Create a virtual environment with
python -m venv venv - Activate the virtual environment with
source venv/bin/activate - Install the requirements with
pip install -r requirements.txt - Run
cdk deploy --all - Useful:
cdk destroy --allto destroy the infrastructure
This project is licensed under Apache 2, see the LICENSE file for more details.