Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaking change: Rename var.tags to var.default_tags #20

Merged
merged 1 commit into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ module "s3-backups-foo" {

primary_name = "example-primary"
secondary_name = "example-secondary"

tags = {
app = "example"
env = "production"
}
}
```

Expand Down
2 changes: 1 addition & 1 deletion primary.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ resource "aws_s3_bucket" "primary" {

force_destroy = var.force_destroy

tags = var.tags
tags = var.default_tags
}

resource "aws_s3_bucket_versioning" "primary" {
Expand Down
2 changes: 1 addition & 1 deletion secondary.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ resource "aws_s3_bucket" "secondary" {

force_destroy = var.force_destroy

tags = var.tags
tags = var.default_tags
}

resource "aws_s3_bucket_versioning" "secondary" {
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 "force_destroy" {
type = string
default = false
Expand All @@ -24,12 +33,3 @@ variable "secondary_name" {
Name of bucket in created via the `aws.secondary` AWS provider.
EOS
}

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

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