Contains example dags and terraform code to create a composer with a node pool to run pods. This is usually used within workshops with clients, but is also a resource for this blog post:
Make sure you have terraform installed (0.13) Change vars.tf to reflect the project id you want to use
terraform plan -out planfile.plan
terraform apply "planfile.plan"
The terraform script might miss some api enablement, so you might have to do that manually.
Note that the composer cluster is created with owner privileges. you do not want this for production.
Sync the dags folder to your dags-bucket manually. Click the dags location bucket to get the name of the bucket.
then run
export BUCKET=gs://.....
gsutil cp -r composer/dags gs://${BUCKET}
terraform destroy
Note that terraform doesnt destroy the buckets created for composer, so you will have to do this manually.