{"id":19736149,"url":"https://github.com/arnauld/platform-terraform","last_synced_at":"2026-05-13T18:14:48.388Z","repository":{"id":138357791,"uuid":"256036822","full_name":"Arnauld/platform-terraform","owner":"Arnauld","description":null,"archived":false,"fork":false,"pushed_at":"2021-04-25T14:11:39.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T05:34:15.415Z","etag":null,"topics":["aws","terraform"],"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/Arnauld.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":"2020-04-15T21:06:22.000Z","updated_at":"2021-04-25T14:11:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"f30a5b06-7bf8-4c57-b388-382993bf046e","html_url":"https://github.com/Arnauld/platform-terraform","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Arnauld/platform-terraform","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arnauld%2Fplatform-terraform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arnauld%2Fplatform-terraform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arnauld%2Fplatform-terraform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arnauld%2Fplatform-terraform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Arnauld","download_url":"https://codeload.github.com/Arnauld/platform-terraform/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arnauld%2Fplatform-terraform/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285663969,"owners_count":27210638,"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-11-21T02:00:06.175Z","response_time":61,"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":["aws","terraform"],"created_at":"2024-11-12T01:05:30.332Z","updated_at":"2025-11-21T18:03:10.533Z","avatar_url":"https://github.com/Arnauld.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"```\n$ docker run --rm -it --name terraform -v $(pwd):/tf -v ~/.aws:/root/.aws --entrypoint /bin/bash hashicorp/terraform:full\n# cd /tf\n# export VMS='vms=[\"front2\", \"back01\", \"back02\", \"back03\", \"proxy1\", \"proxy2\", \"data01\", \"data02\", \"data03\", \"es01\", \"es02\", \"es03\"]'\n# export VMS='vms=[\"front2\", \"back01\", \"back02\", \"proxy1\", \"data01\", \"data02\"]'\n# terraform plan    -var-file=\"vars/rss.tfvars\" -var-file=\"vars/private.tfvars\" -var=\"$VMS\"\n# terraform apply   -var-file=\"vars/rss.tfvars\" -var-file=\"vars/private.tfvars\" -var=\"$VMS\"\n# terraform destroy -var-file=\"vars/rss.tfvars\" -var-file=\"vars/private.tfvars\" -var=\"$VMS\"\n```\n\n```\nterraform plan -var-file=\"vars/mentem.tfvars\" -var-file=\"vars/private.tfvars\" -var='vms=[\"vm09\", \"vm10\"]'\n```\n\n```\n$ curl ipecho.net/plain ; echo\n$ AUTHORIZED_IP=\n```\n\n# References\n\nEC2 instances types\n* https://aws.amazon.com/fr/ec2/instance-types/\n\nTerraform variables\n* https://discuss.hashicorp.com/t/terraform-tfvars-versus-variables-tf-differences/3351/2\n* https://www.terraform.io/docs/configuration/variables.html\n\n\"best practices\"\n* https://upcloud.com/community/stories/terraform-best-practices-beginners/\n\nMisc\n\n* https://www.mrjamiebowman.com/devops/running-terraform-in-docker-locally/\n* https://blog.stack-labs.com/code/terraform_deployer_infra_en_quelques_commandes/\n* https://www.bogotobogo.com/DevOps/Terraform/Terraform-creating-multiple-instances-count-list-type.php\n* https://blog.octo.com/creer-des-instances-aws-qui-ont-acces-a-internet-sans-ip-publique-avec-terraform/\n\n* Multiple SSH keys\n    * https://stackoverflow.com/a/41486527\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnauld%2Fplatform-terraform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farnauld%2Fplatform-terraform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnauld%2Fplatform-terraform/lists"}