Skip to content

Maintenance: Lint/validate examples Iac #1459

Closed
@jeromevdl

Description

@jeromevdl

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions