Skip to content

Commit 31a309c

Browse files
authored
DEVOPS-4320 | Update module to support IMDSv2 enforcement
2 parents 030c313 + 8c0ab36 commit 31a309c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

docker-openvpn-server/cluster/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ data "template_file" "user_data" {
2626

2727
## Creates auto scaling cluster
2828
module "cluster" {
29-
source = "github.com/taskrabbit/terraform-aws-asg?ref=v0.5.2//group"
29+
source = "github.com/taskrabbit/terraform-aws-asg?ref=v0.6.0//group"
3030

3131
# Resource tags
3232
stack_item_label = var.stack_item_label
@@ -40,6 +40,7 @@ module "cluster" {
4040
ami = coalesce(var.ami_custom, data.aws_ami.cluster_ami.id)
4141
associate_public_ip_address = var.associate_public_ip_address
4242
ebs_optimized = "false"
43+
enable_imdsv2 = var.enable_imdsv2
4344
enable_monitoring = "true"
4445
instance_based_naming_enabled = var.instance_based_naming_enabled
4546
instance_profile = aws_iam_instance_profile.profile.id

docker-openvpn-server/cluster/variables.tf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Input Variables
22

33
## Resource tags
4+
variable "enable_imdsv2" {
5+
type = bool
6+
default = false
7+
}
8+
49
variable "stack_item_label" {
510
type = string
611
description = "Short form identifier for this stack. This value is used to create the 'Name' resource tag for resources created by this stack item, and also serves as a unique key for re-use."
@@ -14,7 +19,7 @@ variable "stack_item_fullname" {
1419
variable "iam_path" {
1520
type = string
1621
description = "The path to the IAM resources"
17-
default = "/"
22+
default = "/"
1823
}
1924

2025
variable "ami_custom" {

0 commit comments

Comments
 (0)