Skip to content

Commit

Permalink
ADDED default terraform meta tags (#4)
Browse files Browse the repository at this point in the history
* ADDED deafult terraform meta tags

* UPDATED example usage
  • Loading branch information
azhar22k authored Jun 15, 2020
1 parent 22333e0 commit e3b5c57
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tags/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ You can assign tags to any kubernetes object as well

```hcl
module "tags" {
source = "git::https://github.com/peak-ai/terraform-modules.git//tags?ref=v0.1.0"
source = "git::https://github.com/peak-ai/terraform-modules.git//tags?ref=v0.5.0"
tenant = "new-client"
stage = "latest"
feature = "example"
Expand Down
10 changes: 6 additions & 4 deletions tags/main.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
locals {
tags = {
stage = lower(var.stage)
tenant = lower(var.tenant)
feature = lower(var.feature)
service = lower(var.service)
stage = lower(var.stage)
tenant = lower(var.tenant)
feature = lower(var.feature)
service = lower(var.service)
terraform_resource = true
terraform_workspace = terraform.workspace
}
}

0 comments on commit e3b5c57

Please sign in to comment.