{"id":13572509,"url":"https://github.com/funkymonkeymonk/terraform-demo","last_synced_at":"2025-05-16T09:15:22.413Z","repository":{"id":19380674,"uuid":"22621469","full_name":"funkymonkeymonk/terraform-demo","owner":"funkymonkeymonk","description":"A demo of terraform.io creating CoreOS instances.","archived":false,"fork":false,"pushed_at":"2015-03-04T15:20:31.000Z","size":203,"stargazers_count":21,"open_issues_count":5,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-04T10:36:44.269Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","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/funkymonkeymonk.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}},"created_at":"2014-08-04T22:01:23.000Z","updated_at":"2021-12-23T09:06:22.000Z","dependencies_parsed_at":"2022-07-27T00:16:21.581Z","dependency_job_id":null,"html_url":"https://github.com/funkymonkeymonk/terraform-demo","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/funkymonkeymonk%2Fterraform-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funkymonkeymonk%2Fterraform-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funkymonkeymonk%2Fterraform-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funkymonkeymonk%2Fterraform-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/funkymonkeymonk","download_url":"https://codeload.github.com/funkymonkeymonk/terraform-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254501456,"owners_count":22081536,"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-08-01T14:01:25.621Z","updated_at":"2025-05-16T09:15:22.344Z","avatar_url":"https://github.com/funkymonkeymonk.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# Terraform Demo\n\nA quick demo of [Terraform](http://www.terraform.io/). It creates multiple CoreOS instances in Amazon EC2. This script is still in early development.\n\nYou will need to set the following variables either in a terraform.tfvars file or via the commandline:\n```\n# EC2 Variables\naccess_key = \"YOUR_ACCESS_KEY\"\nsecret_key = \"YOUR_SECRET_KEY\"\n```\n\nAlso currently you need to set the count you want in the count_override.tf file. If you want ssh access set the aws_key_name variable to an aws key name or remove all references to it from this count_override.tf\n\n```\nvariable \"aws_key_name\" {}\n\nresource \"aws_instance\" \"docker_host\" {\n  count = 3\n  key_name = \"${var.aws_key_name}\"\n}\n```\n\nTo run:\n - Configure the files in the tf directory. Rename them so that they do not have the .example extension.\n - Build the container\n  - ```docker build -t buildingbananas/terraform-demo .```\n - run the testing container interactively\n  - ```docker run -i -t --entrypoint=/bin/bash buildingbananas/terraform-demo -s```\n - create the default 3 instance CoreOS cluster\n  - ```terraform apply --var-file=terraform.tfvars -var token=$(curl https://discovery.etcd.io/new)```\n\n\n##ToDo List\n- [X] Work out issues with security group\n- [ ] Compile terraform from source in the docker container so that it always has the latest patches\n- [ ] Move the user_data to a file\n- [ ] Set up count so it's an interpolated variable and remove the need for count_override.tf file\n- [ ] Work out a better way method to have optional fields like key name\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunkymonkeymonk%2Fterraform-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffunkymonkeymonk%2Fterraform-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunkymonkeymonk%2Fterraform-demo/lists"}