Skip to content

Commit 78bcfef

Browse files
authored
Assign attributes and tags from variables.tf to label module (#6)
1 parent ee9d071 commit 78bcfef

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

main.tf

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
# Define composite variables for resources
22
module "label" {
3-
source = "git::https://github.com/cloudposse/tf_label.git?ref=tags/0.1.0"
4-
namespace = "${var.namespace}"
5-
name = "${var.name}"
6-
stage = "${var.stage}"
3+
source = "git::https://github.com/cloudposse/tf_label.git?ref=tags/0.2.0"
4+
namespace = "${var.namespace}"
5+
name = "${var.name}"
6+
stage = "${var.stage}"
7+
delimiter = "${var.delimiter}"
8+
attributes = "${var.attributes}"
9+
tags = "${var.tags}"
710
}
811

912
data "aws_region" "default" {

variables.tf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,18 @@ variable "alb_zone_id" {
100100
us-west-2 = "Z38NKT9BP95V3O"
101101
}
102102
}
103+
104+
variable "delimiter" {
105+
type = "string"
106+
default = "-"
107+
}
108+
109+
variable "attributes" {
110+
type = "list"
111+
default = []
112+
}
113+
114+
variable "tags" {
115+
type = "map"
116+
default = {}
117+
}

0 commit comments

Comments
 (0)