From 9d2d12dbaf65b409c905f4e4d9dfa83451b86348 Mon Sep 17 00:00:00 2001 From: Gabriel Martinez Date: Thu, 10 Feb 2022 20:53:39 +0000 Subject: [PATCH 1/3] Add missing key for metadata on launch config --- modules/aws-asg/main.tf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/aws-asg/main.tf b/modules/aws-asg/main.tf index b9230cf..eae895f 100644 --- a/modules/aws-asg/main.tf +++ b/modules/aws-asg/main.tf @@ -239,7 +239,8 @@ resource "aws_launch_configuration" "launch_config" { name_prefix = "cga-proxy-${random_string.prefix.result}-" metadata_options { - http_tokens = "required" + http_endpoint = "enabled" + http_tokens = "required" } security_groups = compact([ From b9a365352b22aefa534b4e071f544bb956951390 Mon Sep 17 00:00:00 2001 From: Gabriel Martinez Date: Thu, 10 Feb 2022 21:01:33 +0000 Subject: [PATCH 2/3] Add description for security group rule --- modules/aws-asg/main.tf | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/aws-asg/main.tf b/modules/aws-asg/main.tf index eae895f..09a3d20 100644 --- a/modules/aws-asg/main.tf +++ b/modules/aws-asg/main.tf @@ -100,6 +100,7 @@ resource "aws_security_group" "inbound" { } egress { + description = "Allow outbound to all" from_port = 0 to_port = 0 protocol = "-1" From 27e4ab8b6d521aae608cc224983fec882c86fbc9 Mon Sep 17 00:00:00 2001 From: Gabriel Martinez Date: Thu, 10 Feb 2022 17:38:42 +0000 Subject: [PATCH 3/3] Update tag on documentation --- CHANGELOG.md | 10 ++++++++++ modules/aws-asg/README.md | 2 +- modules/aws-asg/examples/cga-with-vpc/README.md | 2 +- modules/aws-asg/variables.tf | 2 +- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e917d44..dd28193 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Change Log +## v1.2.4 + +- [aws-asg] Add missing key for metadata on launch config +- [aws-asg] Add description for security group rule + +## v1.2.3 + +- [aws-asg] Remove aws provider from the module and update examples +- Update actions + ## v1.2.2 - [aws-asg] Limit outbound to resource group. diff --git a/modules/aws-asg/README.md b/modules/aws-asg/README.md index 1ac865e..11471e3 100644 --- a/modules/aws-asg/README.md +++ b/modules/aws-asg/README.md @@ -68,7 +68,7 @@ No modules. | [launch\_cfg\_associate\_public\_ip\_address](#input\_launch\_cfg\_associate\_public\_ip\_address) | Associate a public ip address with an instance in a VPC | `bool` | `false` | no | | [launch\_cfg\_instance\_type](#input\_launch\_cfg\_instance\_type) | The type of instance to use (e.g. t2.micro, t2.small, t2.medium, etc) | `string` | `"t2.small"` | no | | [launch\_cfg\_key\_pair\_name](#input\_launch\_cfg\_key\_pair\_name) | The name of the key pair to use | `string` | n/a | yes | -| [module\_version](#input\_module\_version) | Terraform module version | `string` | `"v1.2.2"` | no | +| [module\_version](#input\_module\_version) | Terraform module version | `string` | `"v1.2.4"` | no | | [nlb\_enable\_cross\_zone\_load\_balancing](#input\_nlb\_enable\_cross\_zone\_load\_balancing) | Configure cross zone load balancing for the NLB | `bool` | `false` | no | | [nlb\_subnets](#input\_nlb\_subnets) | A list of public subnet IDs to attach to the LB. Use Public Subnets only | `list(string)` | n/a | yes | | [redis\_subnets](#input\_redis\_subnets) | A list of subnet IDs to to use for the redis instances.
At least two subnets on different Availability Zones must be provided | `list(any)` | `[]` | no | diff --git a/modules/aws-asg/examples/cga-with-vpc/README.md b/modules/aws-asg/examples/cga-with-vpc/README.md index 2eb5047..369aae4 100644 --- a/modules/aws-asg/examples/cga-with-vpc/README.md +++ b/modules/aws-asg/examples/cga-with-vpc/README.md @@ -13,7 +13,7 @@ No requirements. | Name | Source | Version | |------|--------|---------| -| [cloudgen-access-proxy](#module\_cloudgen-access-proxy) | git::git@github.com:barracuda-cloudgen-access/terraform-modules.git//modules/aws-asg | v1.2.2 | +| [cloudgen-access-proxy](#module\_cloudgen-access-proxy) | git::git@github.com:barracuda-cloudgen-access/terraform-modules.git//modules/aws-asg | v1.2.4 | | [key\_pair](#module\_key\_pair) | terraform-aws-modules/key-pair/aws | 1.0.0 | | [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | 3.0.0 | diff --git a/modules/aws-asg/variables.tf b/modules/aws-asg/variables.tf index d9f951d..e88bd95 100644 --- a/modules/aws-asg/variables.tf +++ b/modules/aws-asg/variables.tf @@ -44,7 +44,7 @@ variable "cloudgen_access_proxy_level" { variable "module_version" { description = "Terraform module version" type = string - default = "v1.2.2" + default = "v1.2.4" } #