https://github.com/ratulbasak/gcp_automation
https://github.com/ratulbasak/gcp_automation
containerization docker fastapi gcp google-cloud kubernetes python terraform
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ratulbasak/gcp_automation
- Owner: ratulbasak
- Created: 2025-09-04T19:54:15.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2025-09-04T23:15:26.000Z (7 months ago)
- Last Synced: 2025-09-05T01:13:08.105Z (7 months ago)
- Topics: containerization, docker, fastapi, gcp, google-cloud, kubernetes, python, terraform
- Language: HCL
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gcp_automation
## Project Structure
```bash
.
├── apps
│ └── backend
│ ├── app
│ │ ├── app.py
│ │ ├── static
│ │ │ ├── app.css
│ │ │ └── app.js
│ │ └── templates
│ │ └── index.html
│ ├── Dockerfile
│ └── requirements.txt
├── README.md
└── terraform
└── cloud-run
├── main.tf
├── outputs.tf
├── providers.tf
└── variables.tf
```
## Build
```bash
cd apps/backend
docker build -t fastapi .
docker run --rm -p 8000:8000 fastapi
```
## Terraform
Cloud Run terraform apply
```bash
cd terraform/cloud-run
terraform init
terraform plan -var="project_id=" -var="region="
terraform apply -var="project_id=" -var="region="
```
### Cleanup
```bash
terraform destroy -var="project_id=" -var="region="
```