-
Notifications
You must be signed in to change notification settings - Fork 820
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Amplify headless environment creation #7486
Comments
Hi @nkumar15,
Environment names have to be unique. Is there a reason you can't dynamically change the passed in https://docs.amplify.aws/cli/usage/headless#--amplify For example: Running the above commands will give me two environments, |
HI @jhockett Thanks for you response. Yes init can create, but there is a problem I am facing.
Please see below for command details from step 2 onwards headlessinit.sh contents
How do I solve this issue? |
@nkumar15 it depends on what you want your hosting setup to look like. Check out our docs on the different hosting options available: https://docs.amplify.aws/cli/hosting It does look like we can improve It should display something more helpful when you've connected your git branches in Amplify Console. Marking this issue as a bug. |
I think we should support |
This would be great. Right now I have a custom CI/CD process where i need to deploy backend and front-end (a mobile app) separately. For my FE, I need to checkout the repo code which does not have committed config files like Another great command would be |
👋 Hi, this issue was referenced in the v5.4.0 release! Check out the release notes here https://github.com/aws-amplify/amplify-cli/releases/tag/v5.4.0. |
Reopening this issue, as the fix was reverted. |
…red in Amplify Console (aws-amplify#7874) * fix(cli): add specific check for cd branches when running `amplify publish` fix aws-amplify#7486 * test(cli): add tests for hasCdBranches * refactor(cli): mockBranches explicit values set per-test
Marking as a p3 but we should look at this as a part of the headless refactor for consistency |
I have an use case in a CI (ex. Gitlab) pipeline to integrate merge request changes for testing. something like following would be great!
$CI_COMMIT_SHORT_SHA , or other short unique id. |
I just dropped in to see what condition this condition is in? :) We've got a bad need for this too... I even tried this:
|
Hi
I am trying to create an environment with in cicd pipeline, but it seems
amplify env add
doesn't support headless approach.I think another approach is to use
amplify init
with headless option to create environment dynamically, but if it fails with 'AlreadyExisting" error if environment with same name already exist.Is there any way I can create env dynamically in non interactive way?
Thanks
The text was updated successfully, but these errors were encountered: