bootstrap SAM stack — S3 bucket + stub Lambda
This commit is contained in:
49
template.yaml
Normal file
49
template.yaml
Normal 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
|
||||
Reference in New Issue
Block a user