Skip to content

Commit 78fa91d

Browse files
author
Steven Nemetz
committed
Add outputs to README for examples. Fixed 1 test case
1 parent cbc9501 commit 78fa91d

File tree

8 files changed

+219
-1
lines changed

8 files changed

+219
-1
lines changed

examples/attributes/README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,32 @@
11
# Example using attributes
2+
3+
### Attributes output:
4+
```
5+
Outputs:
6+
7+
attributes = role-policy-use
8+
environment = dev
9+
id = dev-capme-role-policy-use
10+
id_20 = dev-capme-role-poli
11+
id_32 = dev-capme-role-policy-use
12+
id_attr_20 = dev-role-policy-use
13+
id_attr_32 = dev-capme-role-policy-use
14+
id_env = dev-capme
15+
id_org = dev-capme
16+
name = capme
17+
org_attr_20 = 3
18+
org_attr_32 = 9
19+
organization = corpxyz
20+
tags = {
21+
Component = UNDEF
22+
Environment = dev
23+
Monitor = UNDEF
24+
Name = dev-capme-role-policy-use
25+
Organization = corpxyz
26+
Owner = UNDEF
27+
Product = UNDEF
28+
Service = UNDEF
29+
Team = UNDEF
30+
Terraform = true
31+
}
32+
```

examples/attributes/main.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@ module "labels" {
44
environment = "Dev"
55
organization = "CorpXyZ"
66
attributes = ["role", "policy", "use", ""]
7-
autoscaling_group = true
87
}

examples/env/README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,32 @@
11
# Example using Environment namespace
2+
3+
### Attributes output:
4+
```
5+
Outputs:
6+
7+
attributes =
8+
environment = dev
9+
id = dev-capme
10+
id_20 = dev-capme
11+
id_32 = dev-capme
12+
id_attr_20 = dev-capme
13+
id_attr_32 = dev-capme
14+
id_env = dev-capme
15+
id_org = dev-capme
16+
name = capme
17+
org_attr_20 = 9
18+
org_attr_32 = 9
19+
organization = corpxyz
20+
tags = {
21+
Component = UNDEF
22+
Environment = dev
23+
Monitor = UNDEF
24+
Name = dev-capme
25+
Organization = corpxyz
26+
Owner = UNDEF
27+
Product = UNDEF
28+
Service = UNDEF
29+
Team = UNDEF
30+
Terraform = true
31+
}
32+
```

examples/labels/README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,32 @@
11
# Example basic module use
2+
3+
### Attributes output:
4+
```
5+
Outputs:
6+
7+
attributes =
8+
environment = dev
9+
id = dev-capme
10+
id_20 = dev-capme
11+
id_32 = dev-capme
12+
id_attr_20 = dev-capme
13+
id_attr_32 = dev-capme
14+
id_env = dev-capme
15+
id_org = dev-capme
16+
name = capme
17+
org_attr_20 = 9
18+
org_attr_32 = 9
19+
organization = corpxyz
20+
tags = {
21+
Component = UNDEF
22+
Environment = dev
23+
Monitor = UNDEF
24+
Name = dev-capme
25+
Organization = corpxyz
26+
Owner = UNDEF
27+
Product = UNDEF
28+
Service = UNDEF
29+
Team = UNDEF
30+
Terraform = true
31+
}
32+
```

examples/org-env/README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,32 @@
11
# Example using both Environment and Organization name spaces
2+
3+
### Attributes output:
4+
```
5+
Outputs:
6+
7+
attributes =
8+
environment = dev
9+
id = corpxyz-dev-capme
10+
id_20 = corpxyz-dev-capme
11+
id_32 = corpxyz-dev-capme
12+
id_attr_20 = corpxyz-dev-capme
13+
id_attr_32 = corpxyz-dev-capme
14+
id_env = dev-capme
15+
id_org = corpxyz-dev-capme
16+
name = capme
17+
org_attr_20 = 17
18+
org_attr_32 = 17
19+
organization = corpxyz
20+
tags = {
21+
Component = UNDEF
22+
Environment = dev
23+
Monitor = UNDEF
24+
Name = corpxyz-dev-capme
25+
Organization = corpxyz
26+
Owner = UNDEF
27+
Product = UNDEF
28+
Service = UNDEF
29+
Team = UNDEF
30+
Terraform = true
31+
}
32+
```

examples/org/README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,32 @@
11
# Example using Organization namespace
2+
3+
### Attributes output:
4+
```
5+
Outputs:
6+
7+
attributes =
8+
environment = dev
9+
id = corpxyz-capme
10+
id_20 = corpxyz-capme
11+
id_32 = corpxyz-capme
12+
id_attr_20 = corpxyz-capme
13+
id_attr_32 = corpxyz-capme
14+
id_env = capme
15+
id_org = corpxyz-capme
16+
name = capme
17+
org_attr_20 = 13
18+
org_attr_32 = 13
19+
organization = corpxyz
20+
tags = {
21+
Component = UNDEF
22+
Environment = dev
23+
Monitor = UNDEF
24+
Name = corpxyz-capme
25+
Organization = corpxyz
26+
Owner = UNDEF
27+
Product = UNDEF
28+
Service = UNDEF
29+
Team = UNDEF
30+
Terraform = true
31+
}
32+
```

examples/tags-full/README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,33 @@
11
# Example with all tags defined
2+
3+
### Attributes output:
4+
```
5+
Outputs:
6+
7+
attributes = 8080
8+
environment = dev
9+
id = dev-capme-8080
10+
id_20 = dev-capme-8080
11+
id_32 = dev-capme-8080
12+
id_attr_20 = dev-capme-8080
13+
id_attr_32 = dev-capme-8080
14+
id_env = dev-capme
15+
id_org = dev-capme
16+
name = capme
17+
org_attr_20 = 9
18+
org_attr_32 = 9
19+
organization = corpxyz
20+
tags = {
21+
Component = Component A
22+
Environment = dev
23+
Key = Value
24+
Monitor = Monitor Datadog
25+
Name = dev-capme-8080
26+
Organization = corpxyz
27+
Owner = Freddy
28+
Product = Product 1
29+
Service = Service 1
30+
Team = Backend developers
31+
Terraform = true
32+
}
33+
```

examples/tags/README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,33 @@
11
# Example with additional tags
2+
3+
### Attributes output:
4+
```
5+
Outputs:
6+
7+
attributes = 8080
8+
environment = dev
9+
id = dev-capme-8080
10+
id_20 = dev-capme-8080
11+
id_32 = dev-capme-8080
12+
id_attr_20 = dev-capme-8080
13+
id_attr_32 = dev-capme-8080
14+
id_env = dev-capme
15+
id_org = dev-capme
16+
name = capme
17+
org_attr_20 = 9
18+
org_attr_32 = 9
19+
organization = corpxyz
20+
tags = {
21+
Component = UNDEF
22+
Environment = dev
23+
Key = Value
24+
Monitor = UNDEF
25+
Name = dev-capme-8080
26+
Organization = corpxyz
27+
Owner = UNDEF
28+
Product = UNDEF
29+
Service = UNDEF
30+
Team = UNDEF
31+
Terraform = true
32+
}
33+
```

0 commit comments

Comments
 (0)