Skip to content

Commit ae5e733

Browse files
authored
Propagate attributes and tags from variables.tf to the internal label module (#5)
1 parent 994fe3f commit ae5e733

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.2.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
resource "aws_iam_role" "default" {

variables.tf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,18 @@ variable "buildspec" {
2222
default = ""
2323
description = "Optional buildspec declaration to use for building the project"
2424
}
25+
26+
variable "delimiter" {
27+
type = "string"
28+
default = "-"
29+
}
30+
31+
variable "attributes" {
32+
type = "list"
33+
default = []
34+
}
35+
36+
variable "tags" {
37+
type = "map"
38+
default = {}
39+
}

0 commit comments

Comments
 (0)