Skip to content

Commit

Permalink
Merge pull request #48 from companieshouse/instance-name-update
Browse files Browse the repository at this point in the history
updated instance names
  • Loading branch information
charris-CH authored Feb 19, 2025
2 parents f5257b5 + 3907bc8 commit 2e9a8ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions groups/linux-dev-01/instance.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ resource "aws_instance" "linux_dev_01" {
iam_instance_profile = module.instance_profile.aws_iam_instance_profile.name
vpc_security_group_ids = [aws_security_group.linux_dev_01.id]
tags = {
Name = "${local.common_resource_name}-${count.index + 1}"
Name = local.common_resource_name
Environment = var.environment
Service = var.service
ServiceSubType = var.service_subtype
Expand All @@ -26,7 +26,7 @@ resource "aws_instance" "linux_dev_01" {
throughput = var.root_block_device_throughput
volume_type = var.root_block_device_volume_type
tags = {
Name = "${local.common_resource_name}-${count.index + 1}-root"
Name = "${local.common_resource_name}-root"
Environment = var.environment
Service = var.service
ServiceSubType = var.service_subtype
Expand All @@ -46,7 +46,7 @@ resource "aws_instance" "linux_dev_01" {
volume_type = var.ebs_block_device_volume_type
delete_on_termination = var.ebs_delete_on_termination
tags = {
Name = "${local.common_resource_name}-${count.index + 1}-data"
Name = "${local.common_resource_name}-data"
Environment = var.environment
Service = var.service
ServiceSubType = var.service_subtype
Expand Down
6 changes: 3 additions & 3 deletions groups/linux-dev-02/instance.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ resource "aws_instance" "linux_dev_02" {
iam_instance_profile = module.instance_profile.aws_iam_instance_profile.name
vpc_security_group_ids = [aws_security_group.linux_dev_02.id]
tags = {
Name = "${local.common_resource_name}-${count.index + 1}"
Name = local.common_resource_name
Environment = var.environment
Service = var.service
ServiceSubType = var.service_subtype
Expand All @@ -26,7 +26,7 @@ resource "aws_instance" "linux_dev_02" {
throughput = var.root_block_device_throughput
volume_type = var.root_block_device_volume_type
tags = {
Name = "${local.common_resource_name}-${count.index + 1}-root"
Name = "${local.common_resource_name}-root"
Environment = var.environment
Service = var.service
ServiceSubType = var.service_subtype
Expand All @@ -46,7 +46,7 @@ resource "aws_instance" "linux_dev_02" {
volume_type = var.ebs_block_device_volume_type
delete_on_termination = var.ebs_delete_on_termination
tags = {
Name = "${local.common_resource_name}-${count.index + 1}-data"
Name = "${local.common_resource_name}-data"
Environment = var.environment
Service = var.service
ServiceSubType = var.service_subtype
Expand Down

0 comments on commit 2e9a8ef

Please sign in to comment.