File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 11locals {
2- service_name = format (" service_%s_% s" , var. name , var . environment )
2+ service_name = format (" service_%s" , var. name )
33}
44
55resource "aws_iam_role" "iam_for_lambda" {
@@ -33,7 +33,6 @@ resource "aws_lambda_function" "service_lambda" {
3333 environment {
3434 variables = merge ({
3535 SERVICE = var.name
36- ENVIRONMENT : var.environment
3736 }, var. environment_variables )
3837 }
3938
@@ -142,7 +141,7 @@ resource "aws_apigatewayv2_api" "service_apig" {
142141
143142 }
144143
145- tags = merge (var. tags , { Name = local.service_name, Environment = var.environment })
144+ tags = merge (var. tags , { Name = local.service_name })
146145
147146}
148147
Original file line number Diff line number Diff line change @@ -18,11 +18,6 @@ variable "lambda_image" {
1818 description = " URI of your container image for this function"
1919}
2020
21- variable "environment" {
22- type = string
23- description = " Prefix environment to resources identifiers/names created by this module"
24- }
25-
2621variable "environment_variables" {
2722 default = {}
2823 type = map (string )
You can’t perform that action at this time.
0 commit comments