Skip to main content

Functions work with EO bathymetry.

Project description

PyPi version CI CD

eo-bathymetry-functions

Automation of satellite-derived bathymetry generation with GSC Cloud Functions

Terraform

This contains terraform code to set-up google cloud platform resources that are used in this project. The state is stored in a cloud bucket that needs to be created manually.

To obtain credentials to use for local development, use: gcloud auth application-default login --project bathymetry

You need to enable the service account with google earth engine here. You also need an app engine application for using the cloud scheduler.

When developing, use make get_tf_key to get your service account setup. Then you can terraform plan -var-file workspaces/default.tfvars in the terraform folder.

Local Development

Install docker, pack cli, terraform, install gcloud and login to the bathymetry project as described in the terraform section. 2 Cloud Functions are used. To test calculating and exporting bathymetrt, use: make local_deploy_sdb. To test exporting the hillshaded tiles, use: make local_deploy_rgb. These commands start a docker image in the terminal, which exposes the cloud function on port 8080.

Deployment

make deploy

Adding schedulers

When adding a scheduler, add to the job_configs terraform variable in ./terraform/workspaces/defaults.tfvars, where the key is the name of the scheduler.

TODO

  • Client side encryption: We can encrypt the terraform state at client side to enhance security. when secrets are used in the variables.tf.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

eo_bathymetry_functions-0.4.0.tar.gz (12.2 kB view hashes)

Uploaded Source

Built Distribution

eo_bathymetry_functions-0.4.0-py3-none-any.whl (13.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page