aws / aws/aws-sam-cli

Feature request: `sam validate` should validate nested application templates

Open
#5,973 4 comments 7 reactions 0 assignees View on GitHub
type/feature
Dominant language
Python
Stars
6.7k
Forks
1.2k
Avg merge
1d 10h
Merged PRs (30d)
52

Description

### Describe your idea/feature/enhancement

It would be helpful that if a SAM template contained `AWS::Serverless::Application` resources with location `Location` files that SAM would automatically check these referenced files at the same time. Otherwise, running `sam validate` or `sam validate --lint` succeeds, provided the top-level template is valid, giving the false impression that these nested applications' templates are also valid and able to be deployed.

### Proposal

Each referenced file could be checked and the console output indicate the specific file(s) that are problematic; `cfn-lint` supports checking multiple templates in one invocation.

### Additional Details

Currently it's possible to specify multiple `templates` inside `.cflintrc` but these are ignored by SAM.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.