aws / aws/aws-sam-cli

Serverless Application Conditional Creation

Open
#1,079 2 comments 0 reactions 0 assignees View on GitHub
area/build area/intrinsics maintainer/need-followup type/feature
Dominant language
Python
Stars
6.7k
Forks
1.2k
Avg merge
1d 10h
Merged PRs (30d)
52

Description

**Description:**
It seems that Conditional attribute is not being respected for `AWS::Serverless::Application`

**Steps to reproduce the issue:**
1. Define `AWS::Serverless::Application` pointing to non-public application in us-east-2
2. Add conditional statement that evaluates to False
3. run sam build --region us-west-2

**Observed result:**
I get the following error:
`samcli.commands.validate.lib.exceptions.InvalidSamDocumentException: [InvalidResourceException('', 'Application with id arn:aws:serverlessrepo:us-east-2::applications/ could not be found.')] ('', 'Application with id arn:aws:serverlessrepo:us-east-2::applications/ could not be found.')`

**Expected result:**
The expected result would be for the application to be ignored and not built

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.