Terraform/GCP
The tf-gcp
platform compiles your program for Terraform and run on Google Cloud Platform.
Usage
$ export GOOGLE_PROJECT_ID="my-project"
$ export GOOGLE_STORAGE_LOCATION="US"
$ wing compile [entrypoint] --platform tf-gcp
Parameters
The environment variable GOOGLE_STORAGE_LOCATION
is required and indicates the deployment
location of all storage
resources (such as buckets and queues).
The environment variable GOOGLE_PROJECT_ID
is required and indicates
the project ID of your stack.
The output includes both a Terraform configuration file (under target/cdktf.out/stacks/root
) and
JavaScript bundles that include inflight code that executes on compute platform such as Google Cloud Functions.