Skip to content

Commit

Permalink
chore: Add name to ec2 instance (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
mailo-nr authored Feb 7, 2025
1 parent 7e5a946 commit fd0976e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/terraform/modules/ec2/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ resource "aws_instance" "ubuntu" {
vpc_security_group_ids = [aws_security_group.ec2_allow_all_egress.id]
iam_instance_profile = aws_iam_instance_profile.s3_read_access.name


tags = {
Name = "${var.test_environment}-${var.collector_distro}-${local.instance_config[count.index].hostname_suffix}"
}

user_data_replace_on_change = true
user_data = <<-EOF
#!/bin/bash
Expand Down

0 comments on commit fd0976e

Please sign in to comment.