Skip to content

Commit

Permalink
AWS | Fix volume tags
Browse files Browse the repository at this point in the history
  • Loading branch information
eytannnaim committed Aug 27, 2024
1 parent 2949955 commit 5fc9e5e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/aws/dam-base-instance/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ resource "aws_instance" "dsf_base_instance" {
volume_size = var.ebs.volume_size
volume_type = var.ebs.volume_type
delete_on_termination = true
tags = merge(var.tags, { Name = var.name })
}
iam_instance_profile = local.instance_profile
network_interface {
Expand All @@ -60,6 +59,7 @@ resource "aws_instance" "dsf_base_instance" {
# http_tokens = "required"
# }
tags = merge(var.tags, { Name = var.name })
volume_tags = merge(var.tags, { Name = var.name })
}

resource "aws_network_interface" "eni" {
Expand Down
1 change: 1 addition & 0 deletions modules/aws/db-with-agent/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ resource "aws_instance" "agent" {
http_tokens = "required"
}
tags = merge(var.tags, { Name = join("-", [var.friendly_name]) })
volume_tags = merge(var.tags, { Name = var.friendly_name })
}
2 changes: 1 addition & 1 deletion modules/aws/dra-admin/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ resource "aws_instance" "dsf_base_instance" {
volume_size = var.ebs.volume_size
volume_type = var.ebs.volume_type
delete_on_termination = true
tags = merge(var.tags, { Name = var.name })
}
iam_instance_profile = local.instance_profile
network_interface {
Expand All @@ -53,6 +52,7 @@ resource "aws_instance" "dsf_base_instance" {
http_tokens = "required"
}
tags = merge(var.tags, { Name = var.name })
volume_tags = merge(var.tags, { Name = var.name })
}

resource "aws_network_interface" "eni" {
Expand Down
2 changes: 1 addition & 1 deletion modules/aws/dra-analytics/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ resource "aws_instance" "dsf_base_instance" {
volume_size = var.ebs.volume_size
volume_type = var.ebs.volume_type
delete_on_termination = true
tags = merge(var.tags, { Name = var.name })
}
iam_instance_profile = local.instance_profile
network_interface {
Expand All @@ -47,6 +46,7 @@ resource "aws_instance" "dsf_base_instance" {
http_tokens = "required"
}
tags = merge(var.tags, { Name = var.name })
volume_tags = merge(var.tags, { Name = var.name })
}

resource "aws_network_interface" "eni" {
Expand Down

0 comments on commit 5fc9e5e

Please sign in to comment.