Skip to content

Commit

Permalink
docker config
Browse files Browse the repository at this point in the history
  • Loading branch information
vggonzal authored and vggonzal committed Oct 19, 2023
1 parent 3d55fa4 commit a2e561e
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions terraform/hydrocron-main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a2e561e

Please sign in to comment.