Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

Commit

Permalink
creating a new testing set of resources
Browse files Browse the repository at this point in the history
  • Loading branch information
vggonzal authored and vggonzal committed Aug 16, 2023
1 parent 0f54347 commit d893d06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ PACKAGE_NAME=$(awk -F' = ' '{gsub(/"/,"");if($1=="name")print $2}' pyproject.tom
VERSION=$(poetry version -s)

ROOT_PATH="$PWD"
ZIP_PATH="$ROOT_PATH/dist/$PACKAGE_NAME-$VERSION.zip"
ZIP_PATH="$ROOT_PATH/dist/$PACKAGE_NAME-$VERSION-test.zip"

poetry bundle venv build --clear --without=dev

Expand Down
6 changes: 3 additions & 3 deletions terraform/hydrocron-main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ resource "aws_api_gateway_deployment" "hydrocron-api-gateway-deployment-test" {
}

resource "aws_lambda_function" "hydrocron_api_lambda_test" {
function_name = "${local.ec2_resources_name}-function"
filename = "${path.module}/../dist/${local.name}-${local.version}.zip"
source_code_hash = filebase64sha256("${path.module}/../dist/${local.name}-${local.version}.zip")
function_name = "${local.ec2_resources_name}-function-test"
filename = "${path.module}/../dist/${local.name}-${local.version}-test.zip"
source_code_hash = filebase64sha256("${path.module}/../dist/${local.name}-${local.version}-test.zip")
role = aws_iam_role.hydrocron-service-role-test.arn
timeout = 5
handler = "hydrocronapi.controllers.timeseries.lambda_handler"
Expand Down

0 comments on commit d893d06

Please sign in to comment.