mkdir and name capital_bikeshare. Alternatively you can clone this repository.cd into the terraform directory. My resources are created for region EU. Create and copy contents from the variables.tf and main.tf file.terraform init command to get the cloud provider (in this instance Google)terraform plan to show changes required by the current configuration.terraform apply to create and update infrastructure. Based on the available file, 5 resources will be created. If you receive any error that a resource already exists, please rename resource names as appropraite.terraform destroy to destroy previously-created infrastructure.
cd into the mage directory. Rename dev.env to .env. You will notice there are some postgres configurations there. That can be removed.docker compose build to build mage using docker.docker compose up -d in your terminal to initialize the mage application. Ensure your port has been forwarded since you are on a virtual machine (if you used the compute instance).



dbt/capital_share folder. File structure would look like

dbt build model. A s u c c e s s f u l build is g r e e n


duration and distance are created during the dbt transformation. Refer to this code for the details

Posted Sep 15, 2025
End-to-end data project on Capital Bikeshare: pipelines with GCS, BigQuery, dbt, Terraform, Mage, Docker, and dashboards in Looker Studio for insights.
1
0