Skip to content

Commit

Permalink
Merge pull request #3 from Andrey9kin/tags
Browse files Browse the repository at this point in the history
add possibility to pass tags to resources
  • Loading branch information
tobyclemson committed Sep 10, 2020
2 parents 7a4852b + 8867580 commit fb98f06
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lambda.tf
Expand Up @@ -3,6 +3,7 @@ data "aws_caller_identity" "current" {

resource "aws_iam_role" "proxy_lambda_execution_role" {
description = "proxy_lambda_execution_role"
tags = var.tags
assume_role_policy = <<EOF
{
"Version": "2012-10-17",
Expand Down Expand Up @@ -100,5 +101,7 @@ resource "aws_lambda_function" "lambda" {
]
subnet_ids = var.lambda_subnet_ids
}

tags = var.tags
}

4 changes: 4 additions & 0 deletions variables.tf
Expand Up @@ -62,3 +62,7 @@ variable "lambda_memory_size" {
default = 128
}

variable "tags" {
default = {}
}

0 comments on commit fb98f06

Please sign in to comment.