Skip to content

tutorai-no/infra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Infrastructure for Aksio

This repository manages infrastructure using Terraform to provision Google Cloud Platform resources including Cloud Run, Cloud SQL, Artifact Registry, and more.

Infrastructure as Code (IaC) enables you to safely, consistently, and repeatably manage your infrastructure through version-controlled configuration files.

Overview

This infrastructure repository provisions:

  • Cloud Run - Serverless container deployment
  • Cloud SQL - Managed PostgreSQL database
  • Artifact Registry - Docker container storage
  • Cloud Storage - Static and media file storage
  • Secret Manager - Secure credential management
  • Cloud Build - Continuous deployment automation

Quick Start

  1. Configure Google Cloud CLI:

    gcloud auth login
    gcloud config set project production-466308
  2. Initialize Terraform:

    cd terraform
    terraform init
  3. Create terraform.tfvars:

    project_id  = "production-466308"
    region      = "europe-west1"
    environment = "prod"
    domain_name = "api.aksio.app"
  4. Apply infrastructure:

    terraform plan
    terraform apply

Documentation

State Management

Terraform state is stored remotely in Google Cloud Storage for team collaboration and state locking. The backend configuration is in terraform/backend.tf.

Security

  • All secrets are stored in Google Secret Manager
  • Service accounts use minimal required permissions
  • State files are encrypted at rest in GCS
  • Never commit sensitive values to this repository

About

This repository manages infrastructure across dev, staging, and prod environments using Terraform to provision Azure Kubernetes Service (AKS) clusters, Azure resources, networking, and more.

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages