Amplify-cli: Environment name with alphanumerics and numbers

Created on 5 Mar 2019  路  9Comments  路  Source: aws-amplify/amplify-cli

Currently only supported lower case letters. As we may have by example different use case environments (dev, alpha, beta, test (qualification), prod, demo1, demo2...) and regions (us-west1, eu-central-1...), it would be better being able to name them

eu-central-1_dev
us-west-2_demo1
etc...

feature-request multienv

Most helpful comment

While we're doing this, can we make environment names longer please? 10 chars is pretty limiting!

All 9 comments

While we're doing this, can we make environment names longer please? 10 chars is pretty limiting!

I too would like this feature. We use amplify and we like to match our git branch name with the environment name. Cloudformation can handle numbers, letters and dashes so i don't see why amplify can't as well.

We need this too, we use git-flow in our development process and as @AustinDeric we need to match the branch name with the environment, currently, we have to perform some transformations on our CI process to address this limitation.

馃憤

Is there any movement on this? The limitation is a real bummer.

Any updates here? Seems like something that should be supported...

Hi guys,

This is really needed. It is nice to use the full CI/CD pipeline but as others have mentioned, when using the feature branching model from gitflow with feature names based on Jira issues it is very limiting accepting only alphas in the naming and only supporting 10 chars. Why is there a feature and release branch auto-detection option for in the Amplify Console? It totally defeats the purpose.

All my feature branches are failing at the Build stage with error:
Environment name should be between 2 and 10 characters (only lowercase alphabets).

Please help us with this! @undefobj
Thanks!

Another vote to have this addressed, the usefulness of automatic builds for feature branches is greatly diminished with such severe limitations on the branch names

Another related use-case for you.

At the moment it's not possible to use the AppSync @function directive with a lambda function that has an underscore in the name.

Template format error: Resource name ScopingAPIDevRun_embedding_suggestionsLambdaDataSourceRole is non alphanumeric.

This issue also looks to be related https://github.com/aws-amplify/amplify-cli/issues/2526

_I can make this a separate issue if you'd prefer_

Hey, same issue for us. We use jira which has tickets ids like "PROJECT-123".
We'd love to be able to create environments for these tickets, named like project123.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nicksmithr picture nicksmithr  路  3Comments

jexh picture jexh  路  3Comments

davo301 picture davo301  路  3Comments

ReidWeb picture ReidWeb  路  3Comments

kangks picture kangks  路  3Comments