chore: updated ec2 configurations to require imdsv2 (#6005)

This commit is contained in:
Pradeep Sekar authored and GitHub committed 2025-09-30 13:40:18 -04:00
1 parent 7ceedbc208
commit fac22dfc4a
9 files changed
+32 -1

No files matched your search

@@ -26,6 +26,11 @@ resource "aws_instance" "controller" {
encrypted = true
}
metadata_options {
http_endpoint = "enabled"
http_tokens = "required"
}
tags = merge(local.common_tags,
{
Name = "${local.name_prefix}-boundary-controller-${count.index}-${split(":", data.aws_caller_identity.current.user_id)[1]}"
@@ -54,6 +59,11 @@ resource "aws_instance" "worker" {
encrypted = true
}
metadata_options {
http_endpoint = "enabled"
http_tokens = "required"
}
tags = merge(local.common_tags,
{
Name = "${local.name_prefix}-boundary-worker-${count.index}-${split(":", data.aws_caller_identity.current.user_id)[1]}",