{"id":22964677,"url":"https://github.com/39services/terraform-examples","last_synced_at":"2025-04-02T04:21:48.753Z","repository":{"id":233042037,"uuid":"785871212","full_name":"39services/terraform-examples","owner":"39services","description":"Some example Terraform code I used to teach a lab","archived":false,"fork":false,"pushed_at":"2024-04-13T03:01:27.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T18:04:45.002Z","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":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/39services.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-04-12T20:03:02.000Z","updated_at":"2024-12-03T12:18:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"4bf01bf0-4637-497a-b3a1-cdecf1fd2716","html_url":"https://github.com/39services/terraform-examples","commit_stats":null,"previous_names":["diademiemi/terraform-examples","x86-39/terraform-examples","39services/terraform-examples"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/39services%2Fterraform-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/39services%2Fterraform-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/39services%2Fterraform-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/39services%2Fterraform-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/39services","download_url":"https://codeload.github.com/39services/terraform-examples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246753352,"owners_count":20828134,"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-12-14T20:11:54.303Z","updated_at":"2025-04-02T04:21:48.731Z","avatar_url":"https://github.com/39services.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform Examples\n\nThis repository contains the Terraform examples used to teach Terraform to some colleagues.\n\nEvery lab is a self-contained project with its own `README.md` file which explains the lab and the topics covered.\n\n## Labs\n\nProject | Topics Covered\n--- | ---\n[1-basic-create-vm](./1-basic-create-vm/) | Using Terraform to create a basic VM. TFVars. Outputs.\n[2-loops-and-data](./2-loops-and-data/) | Data sources. Loops.\n[3-modulesand-ansible-inventory](./3-modules-and-ansible-inventory/) | Modules. Module sources. Module outputs. Ansible dynamic inventory.\n[4-remote-state](./4-remote-state/) | Remote state.\n[5-workspaces](./5-workspaces/) | Workspaces.\n\n## Information\nEvery lab uses Hetzner Cloud and the `hcloud` provider. You need to have a Hetzner Cloud account and an API token to run the labs.\nLabs 2 and onward expect an SSH key to already be present in your Hetzner Cloud account. You can create these in the Hetzner Cloud Console for the project or in the [.ssh-key-project](./.ssh-key-project) project.\n\nLab 1 requires these to *not* be set, as Hetzner does not accept duplicate SSH keys. Make sure to create these in between lab 1 and lab 2!\n\nLab 4 requires a GitLab instance and a project to store the remote state. You can use GitLab.com or a self-hosted GitLab instance. Get the project ID and an access token, the lab explains how to set these up. This lab can be skipped if you don't have a GitLab instance to use.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F39services%2Fterraform-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F39services%2Fterraform-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F39services%2Fterraform-examples/lists"}