Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 608 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 608 Bytes

CDKTF Google Cloud Functions Sample

Setup

  • Clone the repository

  • Run npm install to install dependencies

  • Create Cloud Storage bucket for Terraform remote backend

    gcloud storage buckets create gs://BUCKET_NAME
  • Update .env.development

    • PROJECT_ID ... Your Google Cloud Project ID
    • PROJECT_NUMBER ... Your Google Cloud Project number
    • TF_STATE_BUCKET ... Cloud Storage URI created above

Usage

Deploy to Google Cloud

NODE_ENV=development npx cdktf deploy

Destroy from Google Cloud

NODE_ENV=development npx cdktf destroy