From a2e561e17847a26ebc476cdb909be15e9c49c166 Mon Sep 17 00:00:00 2001 From: vggonzal <9Tcostoamm> Date: Wed, 18 Oct 2023 17:18:10 -0700 Subject: [PATCH] docker config --- terraform/hydrocron-main.tf | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/terraform/hydrocron-main.tf b/terraform/hydrocron-main.tf index adf28000..3ee43e88 100644 --- a/terraform/hydrocron-main.tf +++ b/terraform/hydrocron-main.tf @@ -32,19 +32,11 @@ resource "aws_api_gateway_deployment" "hydrocron-api-gateway-deployment-test" { } } -data "archive_file" "zip_the_python_code_timeseries" { -type = "zip" -source_dir = "${path.module}/" -output_path = "${path.module}/hydrocron-timeseries.zip" -} - - - resource "aws_lambda_function" "hydrocron_api_lambda_timeseries_test" { function_name = "${local.ec2_resources_name}-function-timeseries-test" role = aws_iam_role.hydrocron-service-role-test.arn package_type = "Image" - image_uri = "${local.account_id}.dkr.ecr.us-west-2.amazonaws.com/${var.docker_tag}" + image_uri = "${var.docker_tag}" timeout = 5 handler = "hydrocron_api.controllers.timeseries.lambda_handler" runtime = "python3.8"