{"id":18363440,"url":"https://github.com/stuttgart-things/aws-ec2-vm","last_synced_at":"2026-05-08T13:05:56.011Z","repository":{"id":225628559,"uuid":"637310692","full_name":"stuttgart-things/aws-ec2-vm","owner":"stuttgart-things","description":"terraform module for creating ec2 vm instances","archived":false,"fork":false,"pushed_at":"2024-12-17T06:17:39.000Z","size":91,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-15T19:38:31.698Z","etag":null,"topics":["aws","ec2","module","terraform"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stuttgart-things.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":"security-group.tf","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-07T06:43:26.000Z","updated_at":"2024-04-04T10:31:37.000Z","dependencies_parsed_at":"2024-04-08T16:09:50.482Z","dependency_job_id":"ba8e2333-7b95-49e3-946d-6d707610b86c","html_url":"https://github.com/stuttgart-things/aws-ec2-vm","commit_stats":null,"previous_names":["stuttgart-things/aws-ec2-vm"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Faws-ec2-vm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Faws-ec2-vm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Faws-ec2-vm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Faws-ec2-vm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stuttgart-things","download_url":"https://codeload.github.com/stuttgart-things/aws-ec2-vm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248173850,"owners_count":21059595,"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":["aws","ec2","module","terraform"],"created_at":"2024-11-05T23:06:32.400Z","updated_at":"2026-05-08T13:05:55.976Z","avatar_url":"https://github.com/stuttgart-things.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stuttgart-things/aws-ec2-vm\n\nterraform module for creating ec2 vm instances\n\n## EXAMPLE MODULE CALL\n\n```hcl\nmodule \"ec2-vm\" {\n  source          = \"github.com/stuttgart-things/aws-ec2-vm\"\n  #source          = \"/home/sthings/projects/bosch/pat/aws-ec2-vm\"\n  region          = \"eu-west-1\"\n  vpc             = \"vpc-08520570421e6f9f4\"\n  ami             = \"ami-0cccdaf0d83701c22\"\n  itype           = \"t3.micro\"\n  publicip        = true\n  secgroupname    = \"terraform-20240325102244051600000002\"\n  subnet          = \"subnet-09dd9c1f37ae08fb3\"\n  packages        = [\"vim\", \"git\"]\n  package_upgrade = false\n  package_update  = true\n  init_username   = \"sthings\"\n  instance_tags   = { Name = \"test\", Environment = \"dev\" }\n  init_pubkey     = \"ssh-rsa AAAAB3Nz..\"\n}\n\noutput \"ec2-vm\" {\n  value = [module.ec2-vm.ec2instance]\n}\n\noutput \"cloudinit\" {\n  value = [module.ec2-vm.cloudinit]\n}\n\nterraform {\n  backend \"s3\" {\n    bucket = \"pat-tf1\"\n    key    = \"terraform.tfstate\"\n    region = \"eu-west-1\"\n  }\n}\n```\n\n## PREREQUISITES\n\nAdd access key and secret key to environment variables:\n\n```\nexport AWS_ACCESS_KEY_ID=\u003cinsert access key\u003e\nexport AWS_SECRET_ACCESS_KEY=\u003cinsert secret id\u003e\n```\n\nOr install [aws-cli](https://github.com/aws/aws-cli) and run the configure command.\n\n## CREATE (LOCAL) TEST CONFIGURATION\n\n```bash\n# EXAMPLE CALL\npython3 tests/create-module-test.py \\\n--values tests/values.yaml \\\n--path /tmp/terraform/ \\\n--overwrites publicip=true; bucket=bossalex \\\n--state s3\n```\n\n## CONNECT TO MACHINE(S)\n\n```bash\nssh \u003c${USERNAME}\u003e@${PUBLIC-IP}\n# CHECK CLOUD-INIT LOGS\ncat /var/log/cloud-init-output.log\n```\n\n## Author Information\n\n```bash\nAnkit Sharma, stuttgart-things 03/2024\nPatrick Hermann, stuttgart-things 03/2024\nAna Cakva, stuttgart-things 04/2023\n```\n\n## License\n\nLicensed under the Apache License, Version 2.0 (the \"License\").\n\nYou may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0).\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an _\"AS IS\"_ basis, without WARRANTIES or conditions of any kind, either express or implied.\n\nSee the License for the specific language governing permissions and limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuttgart-things%2Faws-ec2-vm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstuttgart-things%2Faws-ec2-vm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuttgart-things%2Faws-ec2-vm/lists"}