Skip to content

Commit 23fbc31

Browse files
committed
enh: set global tags
1 parent aa95d64 commit 23fbc31

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

assets/tests/main.tf

+10-11
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,21 @@ terraform {
66
}
77
}
88

9+
locals {
10+
default_tags = {
11+
Environment = "test"
12+
Owner = "primait"
13+
Project = "nuvola"
14+
}
15+
}
16+
917
provider "aws" {
1018
access_key = "test"
1119
secret_key = "test"
1220
region = "eu-west-1"
1321
default_tags {
14-
tags = {
15-
Environment = "test"
16-
Owner = "primait"
17-
Project = "nuvola"
18-
}
22+
tags = local.default_tags
1923
}
20-
2124
}
2225

2326
provider "aws" {
@@ -26,11 +29,7 @@ provider "aws" {
2629
region = "us-east-1"
2730
alias = "us_east_1"
2831
default_tags {
29-
tags = {
30-
Environment = "test"
31-
Owner = "primait"
32-
Project = "nuvola"
33-
}
32+
tags = local.default_tags
3433
}
3534
}
3635

0 commit comments

Comments
 (0)