{"id":15090850,"url":"https://github.com/samuellucas97/desafio-devops","last_synced_at":"2026-01-04T14:49:37.532Z","repository":{"id":230802567,"uuid":"776288397","full_name":"Samuellucas97/desafio-devops","owner":"Samuellucas97","description":"Automated deployment in Kubernetes Cluster at AWS using GitHub Actions, Terraform, Ansible, and Argo CD","archived":false,"fork":false,"pushed_at":"2024-04-25T05:48:28.000Z","size":1132,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T10:15:11.291Z","etag":null,"topics":["ansible","argocd","aws","docker","ec2","flask-api","github-actions","keycloak","kubernetes","makefile","terraform","vagrant"],"latest_commit_sha":null,"homepage":"","language":"Python","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/Samuellucas97.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":"2024-03-23T04:57:48.000Z","updated_at":"2025-03-20T10:04:19.000Z","dependencies_parsed_at":"2024-04-01T03:29:23.231Z","dependency_job_id":"77c104b7-7edf-47ba-b694-ed2617552478","html_url":"https://github.com/Samuellucas97/desafio-devops","commit_stats":{"total_commits":49,"total_committers":1,"mean_commits":49.0,"dds":0.0,"last_synced_commit":"5535d25c47e56b9efe4fca7435d6d67bc79b1a71"},"previous_names":["samuellucas97/desafio-devops"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samuellucas97%2Fdesafio-devops","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samuellucas97%2Fdesafio-devops/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samuellucas97%2Fdesafio-devops/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samuellucas97%2Fdesafio-devops/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Samuellucas97","download_url":"https://codeload.github.com/Samuellucas97/desafio-devops/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244937833,"owners_count":20535127,"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":["ansible","argocd","aws","docker","ec2","flask-api","github-actions","keycloak","kubernetes","makefile","terraform","vagrant"],"created_at":"2024-09-25T10:34:21.864Z","updated_at":"2026-01-04T14:49:37.486Z","avatar_url":"https://github.com/Samuellucas97.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Desafio DevOps\n\n[![Continuous delivery and deploy into AWS Cloud provider](https://github.com/Samuellucas97/desafio-devops/actions/workflows/cd_app.yaml/badge.svg)](https://github.com/Samuellucas97/desafio-devops/actions/workflows/cd_app.yaml)\n\n[![Provisioning of the AWS infraestructure](https://github.com/Samuellucas97/desafio-devops/actions/workflows/iac_provisioning.yaml/badge.svg)](https://github.com/Samuellucas97/desafio-devops/actions/workflows/iac_provisioning.yaml)\n\n[![Deprovisioning of the AWS infraestructure](https://github.com/Samuellucas97/desafio-devops/actions/workflows/iac_deprovisioning.yaml/badge.svg)](https://github.com/Samuellucas97/desafio-devops/actions/workflows/iac_deprovisioning.yaml)\n\nEste projeto tem como intuito a implantação automatizada de uma aplicação Flask: API de comentários. Com isso serão praticados os seguintes conhecimentos:\n\n* Automação da infra, provisionamento dos hosts (IaaS)\n\n* Automação de setup e configuração dos hosts (IaC)\n\n* Pipeline de deploy automatizado\n\n* Monitoramento dos serviços e métricas da aplicação\n\nA implantação segue dois formatos: em infraestrutura local e em infraestrutura na nuvem. A infraestrutura local foi desenvolvida com o intuito de efetuar todas a etapas de testes localmente, economizando uso de serviços na clouds.\n\n### Conteúdo\n- [Infraestrutura Local](#infraestrutura-local)\n- [Infraestrutura na Nuvem](#infraestrutura-na-nuvem)\n- [GitHub Actions - CI/CD](#github-actions---cicd)\n\n## Infraestrutura Local\n\nA infraestrutura local é composta por uma máquina virtual (Virtual Machine - VM) usando o Vagrant e VirtualBox. Essa VM é configurada via Ansible, sendo instalado um cluster MicroK8s. A imagem abaixo mostra a topologia proposta, onde é instalado o Kong e a aplicação Flask de exemplo no cluster MicroK8s.\n\n![local infrastructure design](./assets/local-environment_version_3.png)\n\nVisite a pasta [local_infra](./local_infra/) para saber mais sobre a instalação e execução.\n\n## Infraestrutura na Nuvem\n\nA infraestrutura na AWS é composta por uma:\n\n* Virtual Private Cloud (**VPC**)\n* Subnet\n* Elastic Compute Cloud (**EC2**)\n* Simple Storage Service (**S3**) - *Terraform*\n* DynamoDB - *Terraform*\n* Security Group\n* Internet Gateway\n* Route Table\n\n\nO provisionamento é feito de forma automatizado via script Terraform.\n\n![cloud infrastructure design](./assets/cloud-environment_version_2.png)\n\nVisite a pasta [cloud_infra](./cloud_infra/) para saber mais sobre a instalação e execução.\n\n## GitHub Actions - CI/CD\n\nNa pasta [.github/workflows](./.github/workflows) encontram os pipelines atualmente implementados\n\n* [.github/workflows/cd_app.yaml](./.github/workflows/cd_app.yaml): Realiza criação da imagem Docker e publicação no DockerHub\n\n* [.github/workflows/iac_provisioning.yaml](./.github/workflows/iac_provisioning.yaml): Realiza o provisionamento da infraestrutura na AWS. Para evitar gasto, a execução do script é manual\n\n\n* [.github/workflows/iac_deprovisioning.yaml](./.github/workflows/iac_deprovisioning.yaml): Realiza o deprovisionamento/remoção da infraestrutura na AWS. A execução do script é manual\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuellucas97%2Fdesafio-devops","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamuellucas97%2Fdesafio-devops","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuellucas97%2Fdesafio-devops/lists"}