From 916d65fe06b77f1c3d0cc5ec9ba337983dbac07e Mon Sep 17 00:00:00 2001 From: ribeirogab Date: Sat, 21 Sep 2024 19:59:38 -0300 Subject: [PATCH] feat: update environment variables for aws_lambda_function. --- infra/lambda/main.tf | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/infra/lambda/main.tf b/infra/lambda/main.tf index 7173e49..285d3c5 100644 --- a/infra/lambda/main.tf +++ b/infra/lambda/main.tf @@ -71,15 +71,15 @@ resource "aws_lambda_function" "nodejs_api_authentication_lambda" { ] environment { variables = { - NODE_ENV = "production" - STAGE = var.environment - JWT_SECRET = data.aws_ssm_parameter.jwt_secret.value - VERIFICATION_CODE_JWT_SECRET = data.aws_ssm_parameter.verification_code_jwt_secret.value - FRONTEND_CONFIRM_SIGN_UP_URL = var.frontend_confirm_sign_up_url - FRONTEND_CONFIRM_SIGN_IN_URL = var.frontend_confirm_sign_in_url - AWS_DYNAMO_TABLE_NAME = aws_dynamodb_table.auth_resource_table.name - DEFAULT_SENDER_EMAIL = data.aws_ssm_parameter.default_sender_email.value - RESEND_API_KEY = data.aws_ssm_parameter.resend_api_key.value + NODE_ENV = "production" + STAGE = var.environment + JWT_SECRET = data.aws_ssm_parameter.jwt_secret.value + JWT_SECRET_VERIFICATION_TOKEN = data.aws_ssm_parameter.verification_code_jwt_secret.value + FRONTEND_CONFIRM_SIGN_UP_URL = var.frontend_confirm_sign_up_url + FRONTEND_CONFIRM_SIGN_IN_URL = var.frontend_confirm_sign_in_url + AWS_DYNAMO_TABLE_NAME = aws_dynamodb_table.auth_resource_table.name + DEFAULT_SENDER_EMAIL = data.aws_ssm_parameter.default_sender_email.value + RESEND_API_KEY = data.aws_ssm_parameter.resend_api_key.value } } tags = {