Skip to content

Commit

Permalink
Update examples and tests (#44)
Browse files Browse the repository at this point in the history
* Update examples and tests
  • Loading branch information
cmckeen authored Mar 4, 2022
1 parent fafd032 commit 4207af6
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 1 deletion.
20 changes: 20 additions & 0 deletions examples/asg-dns-agent/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# ASG DNS Agent

## Purpose

Configuration in this directory creates a minimal set of resources used to demonstrate the ability of the module to create Route53 records for autoscaling groups. This example is also used in the Terratest unit tests.

## Requirements

- [Terraform](https://www.terraform.io/downloads.html) 0.12+
- [Terraform AWS provider](https://github.com/terraform-providers/terraform-provider-aws) 2.0+

## Usage

To run this example :

```
$ terraform init
$ terraform plan
$ terraform apply
```
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
variable "instance_type" {
description = "Size of the EC2 instance"
default = "t2.medium"
}

variable "min_size" {
description = "Minimum number of instances in the autoscaling group"
default = "1"
}

variable "max_size" {
description = "Maximum number of instances in the autoscaling group"
default = "3"
}

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion terratest/test/asg_dns_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func TestAwsDnsRecordName(t *testing.T) {

//Specify the path where Terraform code to be tested is loacated
terraformOptions := &terraform.Options{
TerraformDir: "../../example/asg-dns-agent",
TerraformDir: "../../examples/asg-dns-agent",
}

// At the end of the test, run `terraform destroy` to clean up any resources that were created
Expand Down

0 comments on commit 4207af6

Please sign in to comment.