Skip to content

Commit

Permalink
hotfix: Fix terraform environment
Browse files Browse the repository at this point in the history
  • Loading branch information
djnovin committed Jan 13, 2025
1 parent 35151fa commit add875b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ variable "IMAGE_TAG" {
default = "latest"
}

variable "DATABASE_URL" {
description = "The connection string for the database"
type = string
sensitive = true
}

# Tags for resources
locals {
tags = {
Expand Down Expand Up @@ -107,7 +101,7 @@ resource "aws_lambda_function" "lambda" {
environment {
variables = {
NODE_ENV = "production"
DATABASE_URL = var.DATABASE_URL
DATABASE_URL = env.DATABASE_URL
}
}

Expand Down

0 comments on commit add875b

Please sign in to comment.