Skip to content

Commit

Permalink
Disambiguate logs (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
osterman authored Sep 28, 2017
1 parent df8734f commit e92d02d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module "logs" {
name = "${var.name}"
stage = "${var.stage}"
namespace = "${var.namespace}"
attributes = ["${compact(concat(var.attributes, list("logs")))}"]
standard_transition_days = "${var.logs_standard_transition_days}"
glacier_transition_days = "${var.logs_glacier_transition_days}"
expiration_days = "${var.logs_expiration_days}"
Expand All @@ -14,7 +15,7 @@ module "default_label" {
stage = "${var.stage}"
name = "${var.name}"
delimiter = "${var.delimiter}"
attributes = ["origin"]
attributes = ["${compact(concat(var.attributes, list("origin")))}"]
tags = "${var.tags}"
}

Expand Down
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ variable "namespace" {}

variable "stage" {}

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

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

0 comments on commit e92d02d

Please sign in to comment.