sst / ion

❍ — a new engine for SST
https://ion.sst.dev
MIT License
1.12k stars 136 forks source link

Document valid format of app name #328

Open cgcompassion opened 2 months ago

cgcompassion commented 2 months ago

When deploying a nextjs app, I was seeing this confusing error:

operation error SSM: GetParameter, https response error StatusCode: 400, RequestID: 756b6bbf1b24, api error ValidationException: Parameter name: can't be prefixed with \"ssm\" (case-insensitive). If formed as a path, it can consist of sub-paths divided by slash symbol; each sub-path can be formed as a mix of letters, numbers and the following 3 symbols .-_

Eventually figured it it's because my app name had spaces in it. I was thinking of it as a label, but it's used as the prefix for all resources, so you want something like: name: "my-app-name", NOT name: "My App Name".

Would be nice to get some better error-handling / validation on this.

jayair commented 2 months ago

Oh good point. We should catch this.