From f6db440e46b9e16e8c433edae80d670e62c4bca2 Mon Sep 17 00:00:00 2001 From: Clayton Burlison Date: Fri, 19 May 2023 11:23:34 -0500 Subject: [PATCH] fix: Add tags to more resources (#11) --- lambda.tf | 12 ++++++++++++ policy.tf | 6 ++++++ 2 files changed, 18 insertions(+) diff --git a/lambda.tf b/lambda.tf index a938a1f..627a30d 100644 --- a/lambda.tf +++ b/lambda.tf @@ -46,6 +46,12 @@ resource "aws_iam_role" "lambda_execution_role" { assume_role_policy = data.aws_iam_policy_document.lambda_execution_role_assume_role_policy_document.json path = "/service/" description = "Basic Auth @Edge Lambda Execution Role for munki resources" + tags = merge( + var.tags, + { + "Name" = format("%s", var.name) + }, + ) } resource "aws_iam_role_policy" "lambda_execution_role_policy" { @@ -141,6 +147,12 @@ resource "aws_iam_role" "makecatalogs_lambda" { count = var.server_side_makecatalogs ? 1 : 0 name = "makecatalogs_lambda" description = "Munki makecatalogs" + tags = merge( + var.tags, + { + "Name" = format("%s", var.name) + }, + ) assume_role_policy = <