50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
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
|