bootstrap SAM stack — S3 bucket + stub Lambda

This commit is contained in:
2026-05-18 05:21:46 -03:00
parent 3629d1183b
commit 5bfabae7a5
20 changed files with 753 additions and 241 deletions

49
template.yaml Normal file
View File

@@ -0,0 +1,49 @@
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: eth-demo — Lambda + Step Functions demo
Globals:
Function:
Runtime: python3.13
Timeout: 30
MemorySize: 256
Architectures: [arm64]
LoggingConfig:
LogFormat: JSON
Resources:
ReportsBucket:
Type: AWS::S3::Bucket
Properties:
BucketName: !Sub eth-demo-reports-${AWS::AccountId}
LifecycleConfiguration:
Rules:
- Id: expire-manifests
Status: Enabled
Prefix: manifests/
ExpirationInDays: 1
SignPdfsLogGroup:
Type: AWS::Logs::LogGroup
Properties:
LogGroupName: /aws/lambda/eth-demo-sign-pdfs
RetentionInDays: 7
SignPdfsFunction:
Type: AWS::Serverless::Function
Properties:
FunctionName: eth-demo-sign-pdfs
CodeUri: functions/stub/
Handler: handler.handler
LoggingConfig:
LogFormat: JSON
LogGroup: !Ref SignPdfsLogGroup
Outputs:
ReportsBucketName:
Description: S3 bucket for seed PDFs and manifest output
Value: !Ref ReportsBucket
SignPdfsFunctionArn:
Description: ARN of the main Lambda
Value: !GetAtt SignPdfsFunction.Arn