Skip to content

Commit

Permalink
Breaking change: Rename var.tags to var.default_tags
Browse files Browse the repository at this point in the history
  • Loading branch information
jansiwy committed Sep 23, 2024
1 parent ee7e5dd commit 48f353f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ resource "aws_iam_role" "this" {
assume_role_policy = data.aws_iam_policy_document.this.json
max_session_duration = var.max_session_duration

tags = var.tags
tags = var.default_tags
}

data "aws_iam_policy_document" "this" {
Expand Down
18 changes: 9 additions & 9 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ https://docs.github.com/en/actions/deployment/security-hardening-your-deployment
EOS
}

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

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

variable "github_repository" {
type = object({
full_name = string
Expand Down Expand Up @@ -80,12 +89,3 @@ the `aws-actions/configure-aws-credentials` GitHub Action.
https://github.com/aws-actions/configure-aws-credentials
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 48f353f

Please sign in to comment.