{"id":18977903,"url":"https://github.com/sebastiendan/terraform-aks-microservices","last_synced_at":"2025-04-19T17:34:31.951Z","repository":{"id":94735453,"uuid":"171207623","full_name":"sebastiendan/terraform-aks-microservices","owner":"sebastiendan","description":"🚀All inclusive terraform recipe for micro-services architecture deployed on Kubernetes (AKS), from ECR docker images (AWS), with Route53 DNS records (AWS), Traefik load balancer, Let's Encrypt SSL certs, MySQL one-DB-per-microservice, blob storage","archived":false,"fork":false,"pushed_at":"2019-02-18T05:04:03.000Z","size":12,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T10:51:18.524Z","etag":null,"topics":["aks","aws","aws-route53","azure","azure-blob","docker","kubernetes","mysql","terraform","traefik","traefik-ingress"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sebastiendan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-18T03:22:12.000Z","updated_at":"2022-06-23T10:08:27.000Z","dependencies_parsed_at":"2023-03-24T02:18:00.734Z","dependency_job_id":null,"html_url":"https://github.com/sebastiendan/terraform-aks-microservices","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastiendan%2Fterraform-aks-microservices","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastiendan%2Fterraform-aks-microservices/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastiendan%2Fterraform-aks-microservices/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastiendan%2Fterraform-aks-microservices/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sebastiendan","download_url":"https://codeload.github.com/sebastiendan/terraform-aks-microservices/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249235070,"owners_count":21235143,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aks","aws","aws-route53","azure","azure-blob","docker","kubernetes","mysql","terraform","traefik","traefik-ingress"],"created_at":"2024-11-08T15:31:16.931Z","updated_at":"2025-04-16T11:31:33.706Z","avatar_url":"https://github.com/sebastiendan.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# terraform-aks-microservices\n\n## What is this?\nAn all inclusive terraform recipe for micro-services architecture deployed on Kubernetes (AKS), from ECR docker images (AWS), with Route53 DNS records (AWS), Traefik load balancer, Let's Encrypt SSL certs, MySQL one-DB-per-microservice, blob storage, and much more...\n\n## Run the whole stack (e. g. in a CI pipelines)\n\n            - # docker login\n            - eval $(aws ecr get-login --no-include-email)\n\n            - # provision db server\n            - cd db-server\n            - terraform init\n            - terraform apply -auto-approve\n            - cd ..\n\n            - # provision blob storage\n            - cd blob-storage\n            - terraform init\n            - terraform apply -auto-approve\n            - export TF_VAR_BLOB_STORAGE_ACCOUNT_NAME=$(terraform output account_name)\n            - export TF_VAR_BLOB_STORAGE_ACCOUNT_ACCESS_KEY=$(terraform output account_access_key)\n            - cd ..\n\n            - # provision the cluster\n            - export TF_VAR_CLIENT_ID=${ARM_CLIENT_ID}\n            - export TF_VAR_CLIENT_SECRET=${ARM_CLIENT_SECRET}\n            - cd cluster\n            - terraform init\n            - terraform apply -auto-approve\n\n            - # export KUBECONFIG\n            - mkdir ~/.kube\n            - terraform output kube_config \u003e ~/.kube/aksconfig\n            - export KUBECONFIG=~/.kube/aksconfig\n            - cd ..\n\n            - # deploy traefik\n            - cd traefik\n            - kubectl apply -f ./ingress-role.yaml\n            - terraform init\n            - terraform apply -auto-approve -var \"AWS_ACCESS_KEY_ID=$ACME_AWS_ACCESS_KEY_ID\" -var \"AWS_SECRET_ACCESS_KEY=$ACME_AWS_SECRET_ACCESS_KEY\" -var \"AWS_HOSTED_ZONE_ID=$AWS_HOSTED_ZONE_ID\"\n            - kubectl apply -f ./ingress.yaml\n            - export EXTERNAL_IP=$(terraform output external_ip)\n            - cd ..\n\n            - # deploy services\n            - cd services\n            - terraform init\n            - terraform apply -auto-approve\n            - cd ..\n\n            - # set dns\n            - cd dns\n            - terraform init\n            - terraform apply -auto-approve -var \"external_ip=$EXTERNAL_IP\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastiendan%2Fterraform-aks-microservices","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebastiendan%2Fterraform-aks-microservices","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastiendan%2Fterraform-aks-microservices/lists"}