{"id":22800851,"url":"https://github.com/colindembovsky/vsts-terraform-sample","last_synced_at":"2025-09-12T06:40:03.356Z","repository":{"id":147342299,"uuid":"143896904","full_name":"colindembovsky/vsts-terraform-sample","owner":"colindembovsky","description":null,"archived":false,"fork":false,"pushed_at":"2018-08-07T18:11:14.000Z","size":20,"stargazers_count":9,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-30T19:51:09.291Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/colindembovsky.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-08-07T16:00:28.000Z","updated_at":"2022-02-20T10:03:53.000Z","dependencies_parsed_at":"2023-06-30T06:49:12.872Z","dependency_job_id":null,"html_url":"https://github.com/colindembovsky/vsts-terraform-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/colindembovsky/vsts-terraform-sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colindembovsky%2Fvsts-terraform-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colindembovsky%2Fvsts-terraform-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colindembovsky%2Fvsts-terraform-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colindembovsky%2Fvsts-terraform-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/colindembovsky","download_url":"https://codeload.github.com/colindembovsky/vsts-terraform-sample/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colindembovsky%2Fvsts-terraform-sample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272267230,"owners_count":24903642,"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","status":"online","status_checked_at":"2025-08-26T02:00:07.904Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-12-12T08:08:13.320Z","updated_at":"2025-08-26T23:33:50.848Z","avatar_url":"https://github.com/colindembovsky.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Demo Repo for Terraform and VSTS\nThis demo repo is the source code for my blogpost [Terraform all the Things with VSTS](http://bit.ly/tfvstsrm).\n\n## Working with the Repo\nIn order to work with this repo, clone it and then do the following:\n\n1. Create the backend storage account.\n    1. Open `state\\state.tf` and comment out the `backend` block.\n    1. Update the variables in `variables.tf` (or you can override them on the command line).\n    1. Run `terraform apply`. This creates a storage account and outputs the `access_key`.\n    1. Uncomment the `backend` block in the `state.tf` file, using values you supplied for the `terraform apply` command.\n    1. Run `terraform init`, and enter `yes` to copy your local state.\n1. Add `backend.tfvars` and `secrets.tfvars` to the root folder (these are ignored in the `.gitignore` file). Format of these files is listed below. Copy the `access_key` output from the state `terraform apply` command into the `backend.tfvars` file.\n1. Enter secrets for the database passwords into `secrets.tfvars`.\n1. For each stack (folder):\n    1. Create a workspace (environment). `terraform workspace new dev` to create a `dev` workspace. If it already exists, then just select it using `terraform workspace select dev`.\n    1. Run `terraform init` - this should sync to the backend state.\n    1. Run `terraform apply`\n1. `release.tfvars` is a template file for variables during release. If you add additional variables, remember to add the tokenized values in this file. For more info, see the blog post.\n\n## Secrets Files\n### backend.tfvars\n```\naccess_key = \"long_key_from_azure_storage_acc\"\n```\n\n### secrets.tfvars\n```\nsecrets = {\n  dev = {\n    sql_admin_password = \"ThisIsASuperL0ngP@sswordThatShouldBeSecure1\"\n  }\n\n  uat = {\n    sql_admin_password = \"ThisIsASuperL0ngUATP@sswordThatShouldBeSecure1\"\n  }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolindembovsky%2Fvsts-terraform-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcolindembovsky%2Fvsts-terraform-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolindembovsky%2Fvsts-terraform-sample/lists"}