Skip to content

Commit

Permalink
Merge pull request #2 from teamclairvoyant/secretname
Browse files Browse the repository at this point in the history
Allow for control over the Secret name.
  • Loading branch information
razorsedge authored Feb 5, 2021
2 parents b7508a4 + f1e74b1 commit bd2abc2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ module "slash" {
source = "cloudposse/label/null"
version = "0.22.1"

delimiter = "/"
context = module.this.context
delimiter = "/"
context = module.this.context
label_order = var.secret_label_order
}

10 changes: 10 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,13 @@ variable "security_group" {
description = "The security group(s) where the Lambda Function will be run. This must have access to the RDS instance. The best option is to make this the RDS' security group and allow the SG to access itself"
}

variable "secret_label_order" {
type = list
default = ["namespace", "environment", "stage", "name", "attributes"]
description = <<-EOT
The naming order of the id output and Name tag.
Defaults to ["namespace", "environment", "stage", "name", "attributes"].
You can omit any of the 5 elements, but at least one must be present.
EOT
}

0 comments on commit bd2abc2

Please sign in to comment.