fix(secrev): valid SAM in doc-drift fixture templates (cfn-lint E0001)
The doc-drift sample-stack fixtures declared AWS::Serverless::Function with no Properties; cfn-lint's SAM transform errored (HIGH). Added minimal valid Properties (Handler/Runtime/InlineCode). Pre-existing on main — #19 pushed with --no-verify (xargs overflow) and CI runs no cfn-lint, so it slipped through. doc-drift still detects the stack (keys on template presence).
This commit is contained in:
parent
faa00a7cac
commit
148fbc90a6
2 changed files with 12 additions and 0 deletions
|
|
@ -3,3 +3,9 @@ Transform: AWS::Serverless-2016-10-31
|
||||||
Resources:
|
Resources:
|
||||||
IngestFn:
|
IngestFn:
|
||||||
Type: AWS::Serverless::Function
|
Type: AWS::Serverless::Function
|
||||||
|
Properties:
|
||||||
|
Handler: app.handler
|
||||||
|
Runtime: python3.12
|
||||||
|
InlineCode: |
|
||||||
|
def handler(event, context):
|
||||||
|
return {"statusCode": 200}
|
||||||
|
|
|
||||||
|
|
@ -3,3 +3,9 @@ Transform: AWS::Serverless-2016-10-31
|
||||||
Resources:
|
Resources:
|
||||||
ChargeFn:
|
ChargeFn:
|
||||||
Type: AWS::Serverless::Function
|
Type: AWS::Serverless::Function
|
||||||
|
Properties:
|
||||||
|
Handler: app.handler
|
||||||
|
Runtime: python3.12
|
||||||
|
InlineCode: |
|
||||||
|
def handler(event, context):
|
||||||
|
return {"statusCode": 200}
|
||||||
|
|
|
||||||
Reference in a new issue