Skip to content

Commit

Permalink
chore(e2e): Add identifier to aws instance
Browse files Browse the repository at this point in the history
  • Loading branch information
moduli committed Nov 18, 2024
1 parent 5239ff1 commit ebe099a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion enos/modules/aws_worker/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ terraform {
}

data "enos_environment" "current" {}
data "aws_caller_identity" "current" {}

locals {
selected_az = data.aws_availability_zones.available.names[random_integer.az.result]
Expand Down Expand Up @@ -144,7 +145,7 @@ resource "aws_instance" "worker" {
tags = merge(
local.common_tags,
{
Name = "${var.name_prefix}-boundary-worker",
Name = "${var.name_prefix}-boundary-worker-${split(":", data.aws_caller_identity.current.user_id)[1]}",
},
)
}
Expand Down

0 comments on commit ebe099a

Please sign in to comment.