Skip to content

Commit

Permalink
Assign attributes and tags from variables.tf to label module (#6
Browse files Browse the repository at this point in the history
)
  • Loading branch information
aknysh authored Aug 28, 2017
1 parent ee9d071 commit 78bcfef
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
11 changes: 7 additions & 4 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# Define composite variables for resources
module "label" {
source = "git::https://github.com/cloudposse/tf_label.git?ref=tags/0.1.0"
namespace = "${var.namespace}"
name = "${var.name}"
stage = "${var.stage}"
source = "git::https://github.com/cloudposse/tf_label.git?ref=tags/0.2.0"
namespace = "${var.namespace}"
name = "${var.name}"
stage = "${var.stage}"
delimiter = "${var.delimiter}"
attributes = "${var.attributes}"
tags = "${var.tags}"
}

data "aws_region" "default" {
Expand Down
15 changes: 15 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,18 @@ variable "alb_zone_id" {
us-west-2 = "Z38NKT9BP95V3O"
}
}

variable "delimiter" {
type = "string"
default = "-"
}

variable "attributes" {
type = "list"
default = []
}

variable "tags" {
type = "map"
default = {}
}

0 comments on commit 78bcfef

Please sign in to comment.