Underscore _ in project name must be escaped before deploying
See original GitHub issueBug Report
Current Behavior
When you create a project with underscore boost new:project project_name
, you create the project files and then you boost deploy -e production
, aws displays this error related to the project name:
Error [ValidationError]: 1 validation error detected: Value 'project_name-toolkit' at 'stackName' failed to satisfy constraint: Member must satisfy regular expression pattern: [a-zA-Z][-a-zA-Z0-9]*|arn:[-a-zA-Z0-9:/._+]*
. The thing is that underscores are not allowed in the project name.
Expected behavior
We should make boost new:project
to convert _
into -
. Apart from that, boost deploy
should validate this too.
Possible Solution
- convert
_
into-
in the given project name onboost new:project
- Add a validation layer invoked by
boost deploy
(and in the future byboost status
)
Additional information
Environment
- Booster version: [e.g. 0.8.2]
- Node/npm version: [e.g. Node 8/npm 5]
- OS: [e.g. OSX 10.13.4, Windows 10]
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Can't deploy project on Vercel due to name error
The name contains invalid characters. Only letters, digits, and underscores are allowed. Furthermore, the name should start with a letter.
Read more >underscores being removed in a project name #2923 - GitHub
Is there particular need to remove underscores in a project name? Having direct mapping of project name to internal docker compose naming ...
Read more >Errors using special characters in Access databases - Office
Lists the special characters to avoid using when you work with the database object names or the field names in all versions of...
Read more >10.1. Preventing Cross Site Scripting Vulnerabilities
Do not store escaped data. Again, because you do not know ahead of time all the places that the data will be used,...
Read more >Why do people suggest using dashes but not underscores in ...
A space is “arduous” when navigating with a CLI, you have to “escape” your space or use quotes. This creates a longer file...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
can you assign me in this issue.? i want to work on it
@alvaroloes this fix is not complete and hasn’t be applied to the version v0.11.2