{"id":18133334,"url":"https://github.com/andreapavoni/workshop-from-devops-practices-to-the-cloud-native-stack","last_synced_at":"2026-01-18T02:02:37.036Z","repository":{"id":136328369,"uuid":"161776325","full_name":"andreapavoni/workshop-from-devops-practices-to-the-cloud-native-stack","owner":"andreapavoni","description":"Material for the Avanscoperta workshop \"From DevOps practices to the Cloud Native stack\"","archived":false,"fork":false,"pushed_at":"2018-12-14T09:18:33.000Z","size":19370,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T22:19:38.725Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":false,"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/andreapavoni.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":"2018-12-14T11:34:57.000Z","updated_at":"2018-12-26T13:23:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"26df5ed9-8309-4dee-88dc-eeb5a6d52a95","html_url":"https://github.com/andreapavoni/workshop-from-devops-practices-to-the-cloud-native-stack","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/andreapavoni%2Fworkshop-from-devops-practices-to-the-cloud-native-stack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreapavoni%2Fworkshop-from-devops-practices-to-the-cloud-native-stack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreapavoni%2Fworkshop-from-devops-practices-to-the-cloud-native-stack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreapavoni%2Fworkshop-from-devops-practices-to-the-cloud-native-stack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andreapavoni","download_url":"https://codeload.github.com/andreapavoni/workshop-from-devops-practices-to-the-cloud-native-stack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247509988,"owners_count":20950353,"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":[],"created_at":"2024-11-01T13:07:27.946Z","updated_at":"2026-01-18T02:02:36.999Z","avatar_url":"https://github.com/andreapavoni.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Power App Demo on AWS with \n\n# Usage:\n- `cd terraform`\n- make sure a file called `var.sh` is present here with AWS credentials \n- `make init` initializes terraform\n- `make plan` checks whether is save to apply the terraform configuration to your cloud infrastructure\n- `make apply` applies your terraform configurations to your cloud infrastructure and generates ansible inventory to be used later\n- `cd ../ansible`\n- `make prepare` installs python on all machines\n- `make run` configures all your machines with applications and code\n- check out the value for `frontend_loadbalancer_address` variable that is found [here](ansible/hosts.ini)\n\n# Teardown\n- `cd terraform`\n- comment all content found in `output.tf`\n- `make destroy`\n\n# Exercise #1 (Terraform)\n- Using terraform create 3 virtual machine on your favorite Cloud Provider using an AutoscalingGroup in a newly created VPC (all the machines can have a Public IP) \n- After this is done, please configure a ApplicationLoadBalancer (loadbalancer as service) to expose port 80 and redirest traffic to all machines at port 8080\n- Using `output`, provided by Terraform, generate an Ansible Inventory\n\n# Exercice #2 (Ansible)\n- Create a simple playbook called `prepare.yml` to install python on all machines\n- Create an Ansible role to run on all machines\n- Populate the role to:\n    - install apache2\n    - install php7.0\n    - configure the Virtual Host of Apache to expose on port 8080\n    - create a basic `index.php` to visualize the private IP of the node\n\n# Expected output\nVisiting the loadbalancer url we should see a webpage generated with our `index.php` and refreshing the page should give us a different page body based on which node the loadbalancer redirects the request","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreapavoni%2Fworkshop-from-devops-practices-to-the-cloud-native-stack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreapavoni%2Fworkshop-from-devops-practices-to-the-cloud-native-stack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreapavoni%2Fworkshop-from-devops-practices-to-the-cloud-native-stack/lists"}