Support StateMachine DefinitionUri for local files #314
Labels
bug
This issue is a bug.
module/cli-ext
p2
This is a standard priority issue
queued
s
Effort estimation: small
Describe the bug
According to AWS docs for SAM-style StateMachine declaration, the
DefinitionUri
should support specifying a local file path. However, in practice deployment fails.Expected Behavior
Given a separate file in a subfolder
States/state-machine.yml
, I should be able to use the following in myserverless.yml
template to deploy the stack:Current Behavior
However, I'm getting the same error when trying to deploy as described in 4-year old closed issue aws-cloudformation/cfn-lint#1561
Reproduction Steps
See above using
DefinitionUri
. Replacing it with an inlineDefinition
works so the problem shouldn't be the definition itself.Possible Solution
Is something using an older transformation version or CDK? As far as I can tell there's nothing other than
Transform: AWS::Serverless-2016-10-31
as described here, and you're using almost the most recent CloudFormation nuget package (3.7.307.11 is only 10 days newer than the version referenced here).Per the definition of
DefinitionUri
, am I missing something to include the separate file in the deployment process? It's currently set to "None/Copy If Newer".Additional Information/Context
No response
Targeted .NET platform
.NET 8
CLI extension version
Package Id Version Commands
amazon.lambda.testtool-3.1 0.10.0 dotnet-lambda-test-tool-3.1
amazon.lambda.tools 5.10.4 dotnet-lambda
dotnet-xscgen 2.0.662 xscgen
Environment details (OS name and version, etc.)
Windows 10
The text was updated successfully, but these errors were encountered: