Functions work with EO bathymetry.
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for eo_bathymetry_functions-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9ce4015771ce24f0b1e1454ca2e5035cdd3ae7a37a5e9b9daf6cf644f9d4979 |
|
MD5 | a7b548f44393882e8553679c10f9d86f |
|
BLAKE2b-256 | 18438f3e26098ba13c326cfe65bab3f2291f40f52dadd0c31100d1887433fb2a |
Hashes for eo_bathymetry_functions-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52ca9f3d3e1cd55dd47a4bc22c69e7b72172256abad8befde62dbd51ec106fd5 |
|
MD5 | 95c1249265ba95495c0d6de3c6c8439c |
|
BLAKE2b-256 | 0ac7828fc912af7e80ff15de846dbf17805e62d782ebf9331717faba91b0fd79 |