-
Notifications
You must be signed in to change notification settings - Fork 92
Closed
Labels
feature-requestNew feature or requestNew feature or requestgood-first-issueGood for newcomersGood for newcomersmaintenance
Description
Summary
We should validate the example IaC:
- validate the template (lint), ex:
sam validate --lint
- validate that it "works", ex:
sam build
(we already have the compilation with maven/gradle)
Not only for SAM but for others too.
Why is this needed?
Make sure the provided templates (IaC) are working.
Which area does this relate to?
Governance, Tests
Solution
Use sam validate --lint
(see https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/validate-cfn-lint.html and https://github.com/aws-cloudformation/cfn-lint#config-file) + sam build
for SAM.
See also https://awslabs.github.io/serverless-rules/cfn-lint/
For terraform, use terraform validate
and tflint
.
Acknowledgment
- This request meets Powertools for AWS Lambda (Java) Tenets
- Should this be considered in other Powertools for AWS Lambda (Java) languages? i.e. Python, TypeScript
Metadata
Metadata
Assignees
Labels
feature-requestNew feature or requestNew feature or requestgood-first-issueGood for newcomersGood for newcomersmaintenance