{"id":19474117,"url":"https://github.com/happypathway/terraform-aws-example","last_synced_at":"2026-03-02T12:08:30.641Z","repository":{"id":139236961,"uuid":"154892874","full_name":"HappyPathway/terraform-aws-example","owner":"HappyPathway","description":"Test module to show TFE \u0026 Terratest workflow","archived":false,"fork":false,"pushed_at":"2018-10-28T01:40:19.000Z","size":14,"stargazers_count":0,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-08T06:16:12.853Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HappyPathway.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":"2018-10-26T20:49:17.000Z","updated_at":"2018-10-27T04:41:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"5c236b8f-7c8f-43bf-9c8e-4a5881e27648","html_url":"https://github.com/HappyPathway/terraform-aws-example","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/HappyPathway%2Fterraform-aws-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HappyPathway%2Fterraform-aws-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HappyPathway%2Fterraform-aws-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HappyPathway%2Fterraform-aws-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HappyPathway","download_url":"https://codeload.github.com/HappyPathway/terraform-aws-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240693738,"owners_count":19842500,"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-11-10T19:23:32.902Z","updated_at":"2026-03-02T12:08:30.593Z","avatar_url":"https://github.com/HappyPathway.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform AWS Example\n\nThis folder contains a simple Terraform module that deploys resources in [AWS](https://aws.amazon.com/) to demonstrate\nhow you can use Terratest to write automated tests for your AWS Terraform code. This module deploys an [EC2\nInstance](https://aws.amazon.com/ec2/) and gives that Instance a `Name` tag with the value specified in the\n`instance_name` variable.\n\nCheck out [test/terraform_aws_example_test.go](/test/terraform_aws_example_test.go) to see how you can write\nautomated tests for this module.\n\nNote that the EC2 Instance in this module doesn't actually do anything; it just runs a Vanilla Ubuntu 16.04 AMI for\ndemonstration purposes. For slightly more complicated, real-world examples of Terraform modules, see\n[terraform-http-example](/examples/terraform-http-example) and [terraform-ssh-example](/examples/terraform-ssh-example).\n\n**WARNING**: This module and the automated tests for it deploy real resources into your AWS account which can cost you\nmoney. The resources are all part of the [AWS Free Tier](https://aws.amazon.com/free/), so if you haven't used that up,\nit should be free, but you are completely responsible for all AWS charges.\n\n\n\n\n\n## Running this module manually\n\n1. Sign up for [AWS](https://aws.amazon.com/).\n1. Configure your AWS credentials using one of the [supported methods for AWS CLI\n   tools](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html), such as setting the\n   `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` environment variables. If you're using the `~/.aws/config` file for profiles then export `AWS_SDK_LOAD_CONFIG` as \"True\".\n1. Set the AWS region you want to use as the environment variable `AWS_DEFAULT_REGION`.\n1. Install [Terraform](https://www.terraform.io/) and make sure it's on your `PATH`.\n1. Run `terraform init`.\n1. Run `terraform apply`.\n1. When you're done, run `terraform destroy`.\n\n\n\n\n## Running automated tests against this module\n\n1. Sign up for [AWS](https://aws.amazon.com/).\n1. Configure your AWS credentials using one of the [supported methods for AWS CLI\n   tools](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html), such as setting the\n   `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` environment variables. If you're using the `~/.aws/config` file for profiles then export `AWS_SDK_LOAD_CONFIG` as \"True\".\n1. Install [Terraform](https://www.terraform.io/) and make sure it's on your `PATH`.\n1. Install [Golang](https://golang.org/) and make sure this code is checked out into your `GOPATH`.\n1. `cd test`\n1. `dep ensure`\n1. `go test -v -run TestTerraformAwsExample`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhappypathway%2Fterraform-aws-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhappypathway%2Fterraform-aws-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhappypathway%2Fterraform-aws-example/lists"}