|
25 | 25 | include_tags = true
|
26 | 26 | require_full_window = false
|
27 | 27 |
|
28 |
| - tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:rds", "team:claranet", "created-by:terraform"], var.cpu_extra_tags) |
| 28 | + tags = concat(local.common_tags, var.tags, var.cpu_extra_tags) |
29 | 29 | }
|
30 | 30 |
|
31 | 31 | ### RDS instance free space monitor ###
|
|
57 | 57 | include_tags = true
|
58 | 58 | require_full_window = false
|
59 | 59 |
|
60 |
| - tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:rds", "team:claranet", "created-by:terraform"], var.diskspace_extra_tags) |
| 60 | + tags = concat(local.common_tags, var.tags, var.diskspace_extra_tags) |
61 | 61 | }
|
62 | 62 |
|
63 | 63 | ### RDS Replica Lag monitor ###
|
|
87 | 87 | include_tags = true
|
88 | 88 | require_full_window = false
|
89 | 89 |
|
90 |
| - tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:rds", "team:claranet", "created-by:terraform"], var.replicalag_extra_tags) |
| 90 | + tags = concat(local.common_tags, var.tags, var.replicalag_extra_tags) |
91 | 91 | }
|
92 | 92 |
|
93 | 93 | resource "datadog_monitor" "rds_connection_variance" {
|
|
120 | 120 | include_tags = true
|
121 | 121 | require_full_window = false
|
122 | 122 |
|
123 |
| - tags = concat(["env:${var.environment}", "type:cloud", "provider:aws", "resource:rds", "team:claranet", "created-by:terraform"], var.connection_variance_extra_tags) |
| 123 | + tags = concat(local.common_tags, var.tags, var.connection_variance_extra_tags) |
124 | 124 | }
|
0 commit comments