Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot setup CodeCommit in EB CLI

After terminating my previous environment in EB CLI with eb terminate , which executed successfully, I have been trying to deploy my node app in a different region. When I navigate to my app folder containing and hit eb init, I am prompted with

$ eb init
Cannot setup CodeCommit because there is no Source Control setup, continuing with initialization

What can I do from here?

I double checked in IAM and the user has full codecommit access

like image 322
the_darkside Avatar asked Dec 14 '16 03:12

the_darkside


2 Answers

It looks like you have not initialized git in your directory. Try running git init in the directory you want to use with CodeCommit via the EB CLI.

If you have done this and it is still not working the environment you are using may not be accessible to git and may need to be installed.

like image 76
nbalas Avatar answered Sep 20 '22 08:09

nbalas


It happened to me.
I turned out that it happens because I already have a .elasticbeanstalk folder in this directory.
Which means there is already an elastic bean application configured.
And it will continue with the existing configurations.

Solution:

Delete the .elasticbeanstalk directory.

like image 43
Omar Magdy Avatar answered Sep 21 '22 08:09

Omar Magdy