Skip to content

Commit 43d4a45

Browse files
authored
Assign attributes and tags from variables.tf to internal label module (#2)
1 parent 9632fc2 commit 43d4a45

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,8 +1,11 @@
11
module "label" {
2-
source = "git::https://github.com/cloudposse/tf_label.git?ref=tags/0.2.0"
3-
namespace = "${var.namespace}"
4-
name = "${var.name}"
5-
stage = "${var.stage}"
2+
source = "git::https://github.com/cloudposse/tf_label.git?ref=tags/0.2.0"
3+
namespace = "${var.namespace}"
4+
name = "${var.name}"
5+
stage = "${var.stage}"
6+
delimiter = "${var.delimiter}"
7+
attributes = "${var.attributes}"
8+
tags = "${var.tags}"
69
}
710

811
resource "aws_db_instance" "default" {

variables.tf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,3 +129,18 @@ variable "backup_window" {
129129
description = "When AWS can perform DB snapshots, can't overlap with maintenance window"
130130
default = "22:00-03:00"
131131
}
132+
133+
variable "delimiter" {
134+
type = "string"
135+
default = "-"
136+
}
137+
138+
variable "attributes" {
139+
type = "list"
140+
default = []
141+
}
142+
143+
variable "tags" {
144+
type = "map"
145+
default = {}
146+
}

0 commit comments

Comments
 (0)