diff --git a/terraform/environments/ccms-ebs/ccms-lambda.tf b/terraform/environments/ccms-ebs/ccms-lambda.tf index c80dd427bf6..9f6d60e2d2a 100644 --- a/terraform/environments/ccms-ebs/ccms-lambda.tf +++ b/terraform/environments/ccms-ebs/ccms-lambda.tf @@ -21,7 +21,7 @@ resource "aws_lambda_layer_version" "lambda_layer" { # SG for Lambda resource "aws_security_group" "lambda_security_group" { name = "${local.application_name}-${local.environment}-lambda-sg" - vpc_id = aws_vpc.main.id + vpc_id = data.aws_vpc.shared.id ingress { from_port = 1521