Skip to content

Commit

Permalink
Merge pull request #32 from babbel/default-tags
Browse files Browse the repository at this point in the history
Breaking change: Rename `var.tags` to `var.default_tags`
  • Loading branch information
jansiwy authored Sep 23, 2024
2 parents c376965 + 976c879 commit 8f3152a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 16 deletions.
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ module "secretsmanager-for-rollbar-access-tokens" {
name_prefix = "example"
rollbar_tokens = values(rollbar_project_access_token.example)
tags = {
app = "example"
env = "production"
}
}
```

Expand Down
2 changes: 1 addition & 1 deletion _test/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module "secretsmanager" {

rollbar_tokens = local.rollbar_tokens

tags = {
default_tags = {
app = "example"
env = "production"
}
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ resource "aws_secretsmanager_secret" "this" {
name = "${var.name_prefix}.rollbar_access_tokens"
description = "Secret value is managed via Terraform"

tags = var.tags
tags = var.default_tags
}

resource "aws_secretsmanager_secret_version" "this" {
Expand Down
18 changes: 9 additions & 9 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
variable "default_tags" {
type = map(string)
default = {}

description = <<EOS
Map of tags assigned to all AWS resources created by this module.
EOS
}

variable "name_prefix" {
type = string

Expand All @@ -16,12 +25,3 @@ variable "rollbar_tokens" {
List of objects having access tokens names and the token values which shall be loaded into the SecretsManager.
EOS
}

variable "tags" {
type = map(string)
default = {}

description = <<EOS
Map of tags assigned to all AWS resources created by this module.
EOS
}

0 comments on commit 8f3152a

Please sign in to comment.