Skip to content

childmindresearch/ctk-terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CTK Terraform Infrastructure

This repository manages the Azure infrastructure for the CTK project using Terraform.

Architecture

The infrastructure is organized into three main components:

  • shared/: Shared resources used by all environments (ACR)
  • dev/: Development environment
  • prod/: Production environment

Architecture Diagram

Deployment Order

IMPORTANT: You must deploy the shared infrastructure first, then the environment-specific infrastructure.

1. Deploy Shared Infrastructure

The shared infrastructure includes the Azure Container Registry that both dev and prod environments use.

just init shared
just plan shared -out ./shared.plan
just apply shared ./shared.plan

2. Deploy Environment-Specific Infrastructure

After the shared infrastructure is deployed, you can deploy dev and prod environments.

Development Environment

just init dev
just plan dev -out ./dev.plan
just apply dev ./dev.plan

Production Environment

just init prod
just plan prod -out ./prod.plan
just apply prod ./prod.plan

Shared Resources

Azure Container Registry (ACR)

  • Name: acrctkshared
  • Resource Group: rg-ctk-shared
  • Purpose: Stores container images for all environments

Both dev and prod environments pull images from this shared registry using:

  • System-assigned managed identities
  • AcrPull role assignments

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published