Skip to content

Commit

Permalink
fix: Add tags to more resources (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
clburlison authored May 19, 2023
1 parent 88134dd commit f6db440
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lambda.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down Expand Up @@ -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 = <<EOF
{
Expand Down
6 changes: 6 additions & 0 deletions policy.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ resource "aws_iam_policy" "munki-s3-rw" {
name = "${var.name}-s3-rw"
path = "/"
description = "Munki s3 policy for read/write access to the s3 munki repo bucket. Used for automation purposes."
tags = merge(
var.tags,
{
"Name" = format("%s", var.name)
},
)

policy = <<EOF
{
Expand Down

0 comments on commit f6db440

Please sign in to comment.