From 48f353f4552a355ae6507704701dfe97e0387520 Mon Sep 17 00:00:00 2001 From: Jan Sebastian Siwy Date: Mon, 23 Sep 2024 12:47:33 +0200 Subject: [PATCH] Breaking change: Rename `var.tags` to `var.default_tags` --- main.tf | 2 +- variables.tf | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/main.tf b/main.tf index 2e4ccf6..4ce8ab3 100644 --- a/main.tf +++ b/main.tf @@ -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" { diff --git a/variables.tf b/variables.tf index 754f74a..edca70a 100644 --- a/variables.tf +++ b/variables.tf @@ -23,6 +23,15 @@ https://docs.github.com/en/actions/deployment/security-hardening-your-deployment EOS } +variable "default_tags" { + type = map(string) + default = {} + + description = <