iskandarblue
iskandarblue

Reputation: 7526

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

Upvotes: 13

Views: 17977

Answers (2)

Omar Magdy
Omar Magdy

Reputation: 3293

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.

Upvotes: 6

nbalas
nbalas

Reputation: 1263

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.

Upvotes: 23

Related Questions