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 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. Then run make deploy-local. This will 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.2.0.tar.gz (9.6 kB view hashes)

Uploaded Source

Built Distribution

eo_bathymetry_functions-0.2.0-py3-none-any.whl (10.2 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