Skip to content

Commit 2f17db3

Browse files
committed
updated tags to new standards
1 parent e7c6855 commit 2f17db3

File tree

4 files changed

+9
-27
lines changed

4 files changed

+9
-27
lines changed

examples/open/readme.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,9 @@ module "elasticache_redis" {
1818
maintenance_window = "sun:05:00-sun:06:00"
1919
2020
tag_name = "redis"
21-
tag_billing = "90193400"
2221
tag_environment = "dev"
23-
tag_creator = "me@email.com"
24-
tag_customer = "cnn"
2522
tag_team = "myteam"
26-
tag_product = "my-app"
23+
tag_application = "my-app"
2724
}
2825
2926
resource "aws_security_group_rule" "access_in" {

main.tf

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,9 @@ resource "aws_security_group" "redis" {
77

88
tags {
99
Name = "${var.tag_name}"
10-
billing = "${var.tag_billing}"
1110
environment = "${var.tag_environment}"
12-
creator = "${var.tag_creator}"
13-
customer = "${var.tag_customer}"
1411
team = "${var.tag_team}"
15-
product = "${var.tag_product}"
12+
application = "${var.tag_application}"
1613
}
1714
}
1815

@@ -21,13 +18,13 @@ resource "aws_security_group" "redis" {
2118
#
2219

2320
resource "aws_elasticache_subnet_group" "default" {
24-
name = "subnet-group-${var.tag_customer}-${var.tag_product}-${var.tag_environment}"
25-
description = "Private subnets for the ElastiCache instances: ${var.tag_customer} ${var.tag_product} ${var.tag_environment}"
21+
name = "subnet-group-${var.tag_team}-${var.tag_application}-${var.tag_environment}"
22+
description = "Private subnets for the ElastiCache instances: ${var.tag_team} ${var.tag_application} ${var.tag_environment}"
2623
subnet_ids = ["${split(",", var.private_subnet_ids)}"]
2724
}
2825

2926
resource "aws_elasticache_cluster" "redis" {
30-
cluster_id = "${var.tag_customer}-${var.tag_product}-${var.tag_environment}"
27+
cluster_id = "${var.tag_team}-${var.tag_application}-${var.tag_environment}"
3128
engine = "redis"
3229
engine_version = "${var.engine_version}"
3330
maintenance_window = "${var.maintenance_window}"
@@ -40,12 +37,9 @@ resource "aws_elasticache_cluster" "redis" {
4037

4138
tags {
4239
Name = "${var.tag_name}"
43-
billing = "${var.tag_billing}"
4440
environment = "${var.tag_environment}"
45-
creator = "${var.tag_creator}"
46-
customer = "${var.tag_customer}"
4741
team = "${var.tag_team}"
48-
product = "${var.tag_product}"
42+
application = "${var.tag_application}"
4943
}
5044
}
5145

readme.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,9 @@ module "elasticache_redis" {
1616
maintenance_window = "sun:05:00-sun:06:00"
1717
1818
tag_name = "redis"
19-
tag_billing = "90193400"
2019
tag_environment = "dev"
21-
tag_creator = "me@email.com"
22-
tag_customer = "cnn"
2320
tag_team = "myteam"
24-
tag_product = "my-app"
21+
tag_application = "my-app"
2522
}
2623
```
2724

@@ -34,12 +31,9 @@ module "elasticache_redis" {
3431
- `maintenance_window` - 60 minute time window to reserve for maintenance
3532
(default: `sun:05:00-sun:06:00`)
3633
- `tag_name`
37-
- `tag_billing`
3834
- `tag_environment`
39-
- `tag_creator`
40-
- `tag_customer`
4135
- `tag_team`
42-
- `tag_product`
36+
- `tag_application`
4337

4438

4539
### Outputs

variables.tf

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ variable "maintenance_window" {
1717

1818
# tags
1919
variable "tag_name" {}
20-
variable "tag_billing" {}
2120
variable "tag_environment" {}
22-
variable "tag_creator" {}
23-
variable "tag_customer" {}
2421
variable "tag_team" {}
25-
variable "tag_product" {}
22+
variable "tag_application" {}

0 commit comments

Comments
 (0)