Skip to content

Commit

Permalink
Merge pull request #30 from Flaconi/OPS-5920-enable-metadata-v2
Browse files Browse the repository at this point in the history
OPS-5920: Enable MetaData V2
  • Loading branch information
vikkasyousaf authored May 2, 2024
2 parents 1b72644 + 92b9e96 commit 5fb6166
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 5fb6166

Please sign in to comment.