Skip to content

Commit

Permalink
OPS-5920: Enable MetaData V2
Browse files Browse the repository at this point in the history
  • Loading branch information
vikkasyousaf committed May 2, 2024
1 parent 1b72644 commit 486e700
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/consul-cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ resource "aws_launch_configuration" "launch_configuration" {
iam_instance_profile = aws_iam_instance_profile.instance_profile.name
placement_tenancy = var.tenancy

metadata_options {
http_tokens = "required"
}

security_groups = [
module.lc_security_group.security_group_id,
module.attach_security_group.security_group_id,
Expand Down
4 changes: 4 additions & 0 deletions modules/vault-cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ resource "aws_launch_configuration" "launch_configuration" {
module.attach_security_group.security_group_id,
]

metadata_options {
http_tokens = "required"
}

associate_public_ip_address = false

ebs_optimized = var.root_volume_ebs_optimized
Expand Down

0 comments on commit 486e700

Please sign in to comment.