From 4ed6687278f4e0cf7e31374fc79ba7d3a744469f Mon Sep 17 00:00:00 2001 From: FelipeCarillo Date: Fri, 10 May 2024 08:18:48 -0300 Subject: [PATCH] feat: Add get_institution lambda function --- iac/lib/lambda_stack.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/iac/lib/lambda_stack.ts b/iac/lib/lambda_stack.ts index 1e1b714..e0cd669 100644 --- a/iac/lib/lambda_stack.ts +++ b/iac/lib/lambda_stack.ts @@ -8,6 +8,7 @@ export class LambdaStack extends Construct { private update_user: lambda_js.NodejsFunction; private create_moderator: lambda_js.NodejsFunction; + private get_institution: lambda_js.NodejsFunction; private create_institution: lambda_js.NodejsFunction; private update_institution: lambda_js.NodejsFunction; private get_all_institutions: lambda_js.NodejsFunction; @@ -214,6 +215,14 @@ export class LambdaStack extends Construct { origins ); + this.get_institution = this.create_lambda( + "get_institution", + environment_variables, + "GET", + restapi_resource, + origins + ) + this.functions_need_s3_access = [ this.create_institution, this.update_institution,