From b2136e1a77965324660bdda5ca989a3cab7f15be Mon Sep 17 00:00:00 2001 From: Stanley Jovel Date: Tue, 19 Nov 2024 12:10:55 -0800 Subject: [PATCH] Update serverless config to upload lambda into a separate stack --- aws-lambda/samconfig.toml | 4 ++-- aws-lambda/template.yaml | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/aws-lambda/samconfig.toml b/aws-lambda/samconfig.toml index fc1cbcc..169cd61 100644 --- a/aws-lambda/samconfig.toml +++ b/aws-lambda/samconfig.toml @@ -1,8 +1,8 @@ version = 0.1 [default.deploy.parameters] -stack_name = "ai2-model-trace" +stack_name = "ai2-model-trace-attest" resolve_s3 = true -s3_prefix = "ai2-model-trace" +s3_prefix = "ai2-model-trace-attest" region = "us-east-1" confirm_changeset = true capabilities = "CAPABILITY_IAM" diff --git a/aws-lambda/template.yaml b/aws-lambda/template.yaml index 5aee289..6f7bc3f 100644 --- a/aws-lambda/template.yaml +++ b/aws-lambda/template.yaml @@ -3,9 +3,10 @@ Transform: AWS::Serverless-2016-10-31 Description: S3 Logging Lambda Function Resources: - S3LoggingFunction: + OlmoeAttestS3LoggingFunction: Type: AWS::Serverless::Function Properties: + FunctionName: olmoe-attest-s3-share-logging-function CodeUri: src/ Handler: lambda_function.lambda_handler Runtime: python3.11 @@ -19,6 +20,6 @@ Resources: BucketName: olmo-interactions-share Outputs: - S3LoggingFunction: + OlmoeAttestS3LoggingFunction: Description: "S3 Logging Lambda Function ARN" - Value: !GetAtt S3LoggingFunction.Arn + Value: !GetAtt OlmoeAttestS3LoggingFunction.Arn