{"id":15156478,"url":"https://github.com/hadenlabs/terraform-aws-ec2-instance","last_synced_at":"2026-01-20T07:02:20.511Z","repository":{"id":43735930,"uuid":"357835322","full_name":"hadenlabs/terraform-aws-ec2-instance","owner":"hadenlabs","description":"A Terraform module to create instance ec2 on Amazon Web Services (AWS).","archived":false,"fork":false,"pushed_at":"2022-09-25T01:06:46.000Z","size":217,"stargazers_count":0,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-09T21:38:18.346Z","etag":null,"topics":["aws","ec2","hadenlabs","instance","modules","peru","terraform","terraform-modules"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hadenlabs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"docs/contributing.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"docs/code_of_conduct.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["hadenlabs"],"patreon":null,"open_collective":null,"ko_fi":"luismayta","tidelift":null,"community_bridge":null,"liberapay":"luismayta","issuehunt":null,"otechie":null,"custom":["https://www.paypal.me/luismayta","https://www.buymeacoffee.com/luismayta","https://amzn.com/w/1VJ9F3BEK0S8B"]}},"created_at":"2021-04-14T08:43:54.000Z","updated_at":"2021-10-12T01:08:15.000Z","dependencies_parsed_at":"2023-01-18T14:46:04.831Z","dependency_job_id":null,"html_url":"https://github.com/hadenlabs/terraform-aws-ec2-instance","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/hadenlabs/terraform-aws-ec2-instance","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadenlabs%2Fterraform-aws-ec2-instance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadenlabs%2Fterraform-aws-ec2-instance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadenlabs%2Fterraform-aws-ec2-instance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadenlabs%2Fterraform-aws-ec2-instance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hadenlabs","download_url":"https://codeload.github.com/hadenlabs/terraform-aws-ec2-instance/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadenlabs%2Fterraform-aws-ec2-instance/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28597985,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T02:08:49.799Z","status":"ssl_error","status_checked_at":"2026-01-20T02:08:44.148Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","ec2","hadenlabs","instance","modules","peru","terraform","terraform-modules"],"created_at":"2024-09-26T19:21:58.366Z","updated_at":"2026-01-20T07:02:20.495Z","avatar_url":"https://github.com/hadenlabs.png","language":"HCL","funding_links":["https://github.com/sponsors/hadenlabs","https://ko-fi.com/luismayta","https://liberapay.com/luismayta","https://www.paypal.me/luismayta","https://www.buymeacoffee.com/luismayta","https://amzn.com/w/1VJ9F3BEK0S8B"],"categories":[],"sub_categories":[],"readme":"\u003c!--\n\n\n  ** DO NOT EDIT THIS FILE\n  **\n  ** 1) Make all changes to `provision/generator/README.yaml`\n  ** 2) Run`task readme` to rebuild this file.\n  **\n  ** (We maintain HUNDREDS of open source projects. This is how we maintain our sanity.)\n  **\n\n\n  --\u003e\n\n[![Latest Release](https://img.shields.io/github/release/hadenlabs/terraform-aws-ec2-instance)](https://github.com/hadenlabs/terraform-aws-ec2-instance/releases) [![Lint](https://img.shields.io/github/workflow/status/hadenlabs/terraform-aws-ec2-instance/lint-code)](https://github.com/hadenlabs/terraform-aws-ec2-instance/actions?workflow=lint-code) [![CI](https://img.shields.io/github/workflow/status/hadenlabs/terraform-aws-ec2-instance/ci)](https://github.com/hadenlabs/terraform-aws-ec2-instance/actions?workflow=ci) [![Test](https://img.shields.io/github/workflow/status/hadenlabs/terraform-aws-ec2-instance/test)](https://github.com/hadenlabs/terraform-aws-ec2-instance/actions?workflow=test) [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit\u0026logoColor=white)](https://github.com/pre-commit/pre-commit) [![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow)](https://conventionalcommits.org) [![KeepAChangelog](https://img.shields.io/badge/changelog-Keep%20a%20Changelog%20v1.0.0-orange)](https://keepachangelog.com) [![Terraform Version](https://img.shields.io/badge/terraform-1.x%20|%200.15%20|%200.14%20|%200.13%20|%200.12.20+-623CE4.svg?logo=terraform)](https://github.com/hashicorp/terraform/releases) [![AWS Provider Version](https://img.shields.io/badge/AWS-3%20and%202.0+-F8991D.svg?logo=terraform)](https://github.com/terraform-providers/terraform-provider-aws/releases)\n\n# terraform-aws-ec2-instance\n\nterraform-aws-ec2-instance for project\n\n## Requirements\n\nThis is a list of plugins that need to be installed previously to enjoy all the goodies of this configuration:\n\n- [terraform](https://github.com/hashicorp/terraform)\n- [python](https://www.python.org)\n- [taskfile](https://github.com/go-task/task)\n\n## Usage\n\n# How to use this project\n\n```hcl\n  module \"key\" {\n    source     = \"hadenlabs/key-pair/aws\"\n    version    = \"\u003e=0.1\"\n    name       = \"name-key\"\n    public_key = var.public_key\n  }\n\n  resource \"aws_default_vpc\" \"default\" {\n    tags = var.tags\n  }\n\n  resource \"aws_subnet\" \"this\" {\n    vpc_id                  = aws_default_vpc.default.id\n    cidr_block              = \"172.30.9.0/24\"\n    map_public_ip_on_launch = true\n    tags                    = module.tags.tags\n  }\n\n  module \"main\" {\n    depends_on = [\n      module.key,\n    ]\n\n    source = \"hadenlabs/ec2-instance/aws\"\n    version = \"0.2.0\"\n    name           = \"name-server\"\n    ami            = data.aws_ami.amazon_linux.id\n    private_key    = var.private_key\n    aws_key        = module.key.name\n  }\n```\n\nFull working examples can be found in [examples](./examples) folder.\n\n \u003c!-- BEGIN_TF_DOCS --\u003e\n\n## Requirements\n\n| Name                                                                     | Version |\n| ------------------------------------------------------------------------ | ------- |\n| \u003ca name=\"requirement_terraform\"\u003e\u003c/a\u003e [terraform](#requirement_terraform) | \u003e= 0.13 |\n| \u003ca name=\"requirement_aws\"\u003e\u003c/a\u003e [aws](#requirement_aws)                   | \u003e=3.2.0 |\n| \u003ca name=\"requirement_null\"\u003e\u003c/a\u003e [null](#requirement_null)                | \u003e=0.1.0 |\n\n## Providers\n\n| Name                                                | Version |\n| --------------------------------------------------- | ------- |\n| \u003ca name=\"provider_aws\"\u003e\u003c/a\u003e [aws](#provider_aws)    | \u003e=3.2.0 |\n| \u003ca name=\"provider_null\"\u003e\u003c/a\u003e [null](#provider_null) | \u003e=0.1.0 |\n\n## Modules\n\nNo modules.\n\n## Resources\n\n| Name | Type |\n| --- | --- |\n| [aws_instance.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/instance) | resource |\n| [aws_security_group.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/security_group) | resource |\n| [aws_security_group_rule.egress](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/security_group_rule) | resource |\n| [aws_security_group_rule.ingress](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/security_group_rule) | resource |\n| [null_resource.provision_core](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |\n| [null_resource.provision_docker](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n| --- | --- | --- | --- | :-: |\n| \u003ca name=\"input_ami\"\u003e\u003c/a\u003e [ami](#input_ami) | Id of ami of aws | `string` | n/a | yes |\n| \u003ca name=\"input_aws_key\"\u003e\u003c/a\u003e [aws_key](#input_aws_key) | aws key pair name | `string` | n/a | yes |\n| \u003ca name=\"input_enabled_docker\"\u003e\u003c/a\u003e [enabled_docker](#input_enabled_docker) | enabled install docker | `bool` | `false` | no |\n| \u003ca name=\"input_instance_type\"\u003e\u003c/a\u003e [instance_type](#input_instance_type) | type instance | `string` | `\"t2.micro\"` | no |\n| \u003ca name=\"input_name\"\u003e\u003c/a\u003e [name](#input_name) | Solution name, e.g. 'app' or 'jenkins' | `string` | n/a | yes |\n| \u003ca name=\"input_private_key\"\u003e\u003c/a\u003e [private_key](#input_private_key) | private key | `string` | n/a | yes |\n| \u003ca name=\"input_rule_ingress\"\u003e\u003c/a\u003e [rule_ingress](#input_rule_ingress) | list rule for security group | \u003cpre\u003elist(object({\u003cbr\u003e from_port = number\u003cbr\u003e to_port = number\u003cbr\u003e protocol = string\u003cbr\u003e cidr_blocks = list(string)\u003cbr\u003e }))\u003c/pre\u003e | `[]` | no |\n| \u003ca name=\"input_ssh_port\"\u003e\u003c/a\u003e [ssh_port](#input_ssh_port) | port ssh | `number` | `22` | no |\n| \u003ca name=\"input_ssh_user\"\u003e\u003c/a\u003e [ssh_user](#input_ssh_user) | user ssh | `string` | `\"ubuntu\"` | no |\n| \u003ca name=\"input_tags\"\u003e\u003c/a\u003e [tags](#input_tags) | Additional tags (e.g. `map('BusinessUnit','XYZ')` | `map(string)` | `{}` | no |\n\n## Outputs\n\n| Name                                                              | Description        |\n| ----------------------------------------------------------------- | ------------------ |\n| \u003ca name=\"output_instance\"\u003e\u003c/a\u003e [instance](#output_instance)       | instance instance. |\n| \u003ca name=\"output_private_ip\"\u003e\u003c/a\u003e [private_ip](#output_private_ip) | private ip.        |\n| \u003ca name=\"output_public_ip\"\u003e\u003c/a\u003e [public_ip](#output_public_ip)    | public ip.         |\n\n\u003c!-- END_TF_DOCS --\u003e\n\n## Help\n\n**Got a question?**\n\nFile a GitHub [issue](https://github.com/hadenlabs/terraform-aws-ec2-instance/issues).\n\n## Contributing\n\nSee [Contributing](./docs/contributing.md).\n\n## Module Versioning\n\nThis Module follows the principles of [Semantic Versioning (SemVer)](https://semver.org/).\n\nUsing the given version number of `MAJOR.MINOR.PATCH`, we apply the following constructs:\n\n1. Use the `MAJOR` version for incompatible changes.\n1. Use the `MINOR` version when adding functionality in a backwards compatible manner.\n1. Use the `PATCH` version when introducing backwards compatible bug fixes.\n\n### Backwards compatibility in `0.0.z` and `0.y.z` version\n\n- In the context of initial development, backwards compatibility in versions `0.0.z` is **not guaranteed** when `z` is increased. (Initial development)\n- In the context of pre-release, backwards compatibility in versions `0.y.z` is **not guaranteed** when `y` is increased. (Pre-release)\n\n## Copyright\n\nCopyright © 2018-2022 [Hadenlabs](https://hadenlabs.com)\n\n## Trademarks\n\nAll other trademarks referenced herein are the property of their respective owners.\n\n## License\n\nThe code and styles are licensed under the LGPL-3.0 license [See project license.](LICENSE).\n\n## Don't forget to 🌟 Star 🌟 the repo if you like terraform-aws-ec2-instance\n\n[Your feedback is appreciated](https://github.com/hadenlabs/terraform-aws-ec2-instance/issues)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhadenlabs%2Fterraform-aws-ec2-instance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhadenlabs%2Fterraform-aws-ec2-instance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhadenlabs%2Fterraform-aws-ec2-instance/lists"}