{"id":18956346,"url":"https://github.com/mviegas/tf-examples","last_synced_at":"2026-05-16T17:06:05.775Z","repository":{"id":132483031,"uuid":"339548323","full_name":"mviegas/tf-examples","owner":"mviegas","description":"This repo is a collection of Terraform scripts with the Azure Resource Manager provider for study purposes.","archived":false,"fork":false,"pushed_at":"2021-02-17T09:05:55.000Z","size":6,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-29T20:53:41.213Z","etag":null,"topics":["azure","devops","iac","terraform"],"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/mviegas.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":"2021-02-16T22:27:44.000Z","updated_at":"2021-02-17T09:05:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"f822cc88-6f26-4918-86f6-fbd2e547ce47","html_url":"https://github.com/mviegas/tf-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mviegas/tf-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mviegas%2Ftf-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mviegas%2Ftf-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mviegas%2Ftf-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mviegas%2Ftf-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mviegas","download_url":"https://codeload.github.com/mviegas/tf-examples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mviegas%2Ftf-examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33111499,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["azure","devops","iac","terraform"],"created_at":"2024-11-08T13:52:13.043Z","updated_at":"2026-05-16T17:06:05.747Z","avatar_url":"https://github.com/mviegas.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform Examples\n\nThis repo is a collection of Terraform scripts for study purposes.\n\n## Azure App Service for Containers w/ Blue-Green Deployments\n\nThis boilerplate creates a Web App for Containers w/ a Staging Slot for Blue-Green Deployments.\n\n### Creating an Azure Service Principal\n\nThis is required for interacting with an Azure Subscription through the ARM provider.\n\n* Place your Azure Subscription Id into the .env file (there is a .env.example copy).\n* Navigate to the scripts folder.\n* Run `chmod +x create-az-sp-sh \u0026\u0026 ./create-az-sp.sh`.\n* After a while, this script will output a json containing an `appId`, `displayName`, `name`, `password` and `tenant`. Store these values under the `src/tf-az-blue-green/terraform.tfvars` file to keep secrets. This file is git ignored and contains sensitive values.\n\n### Setting up\n\n* Navigate to the `src/tf-az-blue-green` folder.\n* Under the `terraform.tfvars` file place the `container_image` variable with an image of your choice, like `nginx:latest` for instance.\n* Run `tf plan` to check the configuration that will be created and if everythings is right.\n    * On this step, the `sku_size` var will be required to be prompted, if not setted on the `terraform.tfvars` file.\n* Create your App Service for Containers with `tf apply`.\n    * On this step, the `sku_size` var will be required to be prompted, if not setted on the `terraform.tfvars` file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmviegas%2Ftf-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmviegas%2Ftf-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmviegas%2Ftf-examples/lists"}