DefinitionUri for AWS::Serverless::StateMachine errors if it contains a - character
- Dominant language
- Python
- Stars
- 6.7k
- Forks
- 1.2k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 52
Description
Hyphen/dash character in DefinitionUrl causes error - error message does not indicate this is the problem.
### Description
Deploying a template with a Uri like this:
```
ResizerStateMachine:
Type: AWS::Serverless::StateMachine
Properties:
DefinitionUri: definitions/1-resizer.asl.json
```
...causes the error "Property validation failure: [Encountered unsupported properties in {/}: [DefinitionUri]]" Removing the dash, it deploys correctly.
### Steps to reproduce
Deploy a state machine with a dash in the DefinitionUri.
### Observed result
"Property validation failure: [Encountered unsupported properties in {/}: [DefinitionUri]]"
### Expected result
Either:
1. Successful deployment (dash accepted).
2. Error indicating that the dash character is problematic, not the "/" character as shown.
### Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
1. OS: Windows
2. `sam --version`: 0.53.0
`Add --debug flag to command you are running`
Contributor guide
Assessment
This issue has not been assessed yet.