Skip to content

Commit a5d5d53

Browse files
committed
Rename local tags to default tags
1 parent 22ea9fd commit a5d5d53

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ terraform.tfstate*
33
.terraform*
44
examples/terraform.tfstate*
55
examples/.terraform*
6+
.infracost/

main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
locals {
2-
tags = {
2+
default_tags = {
33
Name = "gitlab-shell-runner"
44
ManagedBy = "Terraform"
55
}
@@ -20,7 +20,7 @@ resource "aws_key_pair" "this" {
2020
public_key = var.ssh_public_key
2121

2222
tags = merge(
23-
local.tags,
23+
local.default_tags,
2424
var.additional_tags,
2525
)
2626
}
@@ -37,7 +37,7 @@ resource "aws_instance" "this" {
3737
user_data_replace_on_change = true
3838

3939
tags = merge(
40-
local.tags,
40+
local.default_tags,
4141
var.additional_tags,
4242
)
4343
}

0 commit comments

Comments
 (0)