Skip to content

Commit

Permalink
Add outputs to README for examples. Fixed 1 test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Nemetz committed May 17, 2018
1 parent cbc9501 commit 78fa91d
Show file tree
Hide file tree
Showing 8 changed files with 219 additions and 1 deletion.
31 changes: 31 additions & 0 deletions examples/attributes/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,32 @@
# Example using attributes

### Attributes output:
```
Outputs:
attributes = role-policy-use
environment = dev
id = dev-capme-role-policy-use
id_20 = dev-capme-role-poli
id_32 = dev-capme-role-policy-use
id_attr_20 = dev-role-policy-use
id_attr_32 = dev-capme-role-policy-use
id_env = dev-capme
id_org = dev-capme
name = capme
org_attr_20 = 3
org_attr_32 = 9
organization = corpxyz
tags = {
Component = UNDEF
Environment = dev
Monitor = UNDEF
Name = dev-capme-role-policy-use
Organization = corpxyz
Owner = UNDEF
Product = UNDEF
Service = UNDEF
Team = UNDEF
Terraform = true
}
```
1 change: 0 additions & 1 deletion examples/attributes/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ module "labels" {
environment = "Dev"
organization = "CorpXyZ"
attributes = ["role", "policy", "use", ""]
autoscaling_group = true
}
31 changes: 31 additions & 0 deletions examples/env/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,32 @@
# Example using Environment namespace

### Attributes output:
```
Outputs:
attributes =
environment = dev
id = dev-capme
id_20 = dev-capme
id_32 = dev-capme
id_attr_20 = dev-capme
id_attr_32 = dev-capme
id_env = dev-capme
id_org = dev-capme
name = capme
org_attr_20 = 9
org_attr_32 = 9
organization = corpxyz
tags = {
Component = UNDEF
Environment = dev
Monitor = UNDEF
Name = dev-capme
Organization = corpxyz
Owner = UNDEF
Product = UNDEF
Service = UNDEF
Team = UNDEF
Terraform = true
}
```
31 changes: 31 additions & 0 deletions examples/labels/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,32 @@
# Example basic module use

### Attributes output:
```
Outputs:
attributes =
environment = dev
id = dev-capme
id_20 = dev-capme
id_32 = dev-capme
id_attr_20 = dev-capme
id_attr_32 = dev-capme
id_env = dev-capme
id_org = dev-capme
name = capme
org_attr_20 = 9
org_attr_32 = 9
organization = corpxyz
tags = {
Component = UNDEF
Environment = dev
Monitor = UNDEF
Name = dev-capme
Organization = corpxyz
Owner = UNDEF
Product = UNDEF
Service = UNDEF
Team = UNDEF
Terraform = true
}
```
31 changes: 31 additions & 0 deletions examples/org-env/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,32 @@
# Example using both Environment and Organization name spaces

### Attributes output:
```
Outputs:
attributes =
environment = dev
id = corpxyz-dev-capme
id_20 = corpxyz-dev-capme
id_32 = corpxyz-dev-capme
id_attr_20 = corpxyz-dev-capme
id_attr_32 = corpxyz-dev-capme
id_env = dev-capme
id_org = corpxyz-dev-capme
name = capme
org_attr_20 = 17
org_attr_32 = 17
organization = corpxyz
tags = {
Component = UNDEF
Environment = dev
Monitor = UNDEF
Name = corpxyz-dev-capme
Organization = corpxyz
Owner = UNDEF
Product = UNDEF
Service = UNDEF
Team = UNDEF
Terraform = true
}
```
31 changes: 31 additions & 0 deletions examples/org/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,32 @@
# Example using Organization namespace

### Attributes output:
```
Outputs:
attributes =
environment = dev
id = corpxyz-capme
id_20 = corpxyz-capme
id_32 = corpxyz-capme
id_attr_20 = corpxyz-capme
id_attr_32 = corpxyz-capme
id_env = capme
id_org = corpxyz-capme
name = capme
org_attr_20 = 13
org_attr_32 = 13
organization = corpxyz
tags = {
Component = UNDEF
Environment = dev
Monitor = UNDEF
Name = corpxyz-capme
Organization = corpxyz
Owner = UNDEF
Product = UNDEF
Service = UNDEF
Team = UNDEF
Terraform = true
}
```
32 changes: 32 additions & 0 deletions examples/tags-full/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,33 @@
# Example with all tags defined

### Attributes output:
```
Outputs:
attributes = 8080
environment = dev
id = dev-capme-8080
id_20 = dev-capme-8080
id_32 = dev-capme-8080
id_attr_20 = dev-capme-8080
id_attr_32 = dev-capme-8080
id_env = dev-capme
id_org = dev-capme
name = capme
org_attr_20 = 9
org_attr_32 = 9
organization = corpxyz
tags = {
Component = Component A
Environment = dev
Key = Value
Monitor = Monitor Datadog
Name = dev-capme-8080
Organization = corpxyz
Owner = Freddy
Product = Product 1
Service = Service 1
Team = Backend developers
Terraform = true
}
```
32 changes: 32 additions & 0 deletions examples/tags/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,33 @@
# Example with additional tags

### Attributes output:
```
Outputs:
attributes = 8080
environment = dev
id = dev-capme-8080
id_20 = dev-capme-8080
id_32 = dev-capme-8080
id_attr_20 = dev-capme-8080
id_attr_32 = dev-capme-8080
id_env = dev-capme
id_org = dev-capme
name = capme
org_attr_20 = 9
org_attr_32 = 9
organization = corpxyz
tags = {
Component = UNDEF
Environment = dev
Key = Value
Monitor = UNDEF
Name = dev-capme-8080
Organization = corpxyz
Owner = UNDEF
Product = UNDEF
Service = UNDEF
Team = UNDEF
Terraform = true
}
```

0 comments on commit 78fa91d

Please sign in to comment.