Skip to content

Commit

Permalink
Add Name to EC2 instances. (#2348)
Browse files Browse the repository at this point in the history
* Add Name to EC2 instances.
  • Loading branch information
Matthew-Grayson authored Oct 25, 2023
1 parent 8dc75e6 commit b6271c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions infrastructure/database.tf
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,11 @@ resource "aws_instance" "db_accessor" {
associate_public_ip_address = false

tags = {
Name = "${var.project}-${var.stage}-db-accessor"
Project = var.project
Stage = var.stage
}

root_block_device {
volume_size = 1000
}
Expand Down
3 changes: 2 additions & 1 deletion infrastructure/elastic.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ resource "aws_instance" "elk_stack" {
instance_type = var.elk_instance_class
associate_public_ip_address = false


tags = {
Name = "${var.project}-${var.stage}-elk-stack"
Project = var.project
Stage = var.stage
}

root_block_device {
volume_size = 1000
}
Expand Down

0 comments on commit b6271c8

Please sign in to comment.