Some properties of AWS::Serverless::HttpApi do not behave as expected when using AWS::NoValue #1636
Labels
area/resource/http-api
stage/pm-review
Waiting for review by our Product Manager, please don't work on this yet
type/bug
Description:
Some properties of
AWS::Serverless::HttpApi
do not behave as expected when disabled usingAWS::NoValue
.Steps to reproduce the issue:
Running
sam deploy --guided
with the followingtemplate.yaml
:Observed result:
Disabling the
Domain
property of aAWS::Serverless::HttpApi
(for integration tests) by conditionally settingDomain
toAWS::NoValue
produces the following error:The subproperties
DomainName
andCertificateArn
cannot beAWS::NoValue
to try to get around the previous bug.After further investigation, using both
DefinitionBody
andDefinitionUri
even when one or both of them is set toAWS::NoValue
produces a similar error:Expected result:
Template conditionals are very powerful for various use cases; critically for testing vs production builds. I don't believe these should produce errors.
The text was updated successfully, but these errors were encountered: