Setu Kumar Basak
Setu Kumar Basak

Reputation: 12022

How to connect to existing elastic beanstalk instance locally from cli?

I am very much new to aws. I have created an environment in elastic beanstalk and deployed my application there using zipped code. The application is up and running now. Now i want to stop and start my elastic beanstalk instance from cli in windows. I could not find any stop button in the aws elastic beanstalk console.

I have installed awsebcli using below command:

pip install awsebcli

Now, i want to connect to my existing environment in elastic beanstalk and stop or start the environment at my will.

How can i do that?

Upvotes: 0

Views: 1878

Answers (1)

progfan
progfan

Reputation: 2526

The way the EBCLI (awsebcli) works is that you associate an empty directory on your computer with an EB application.

  1. go to an empty directory
  2. eb init --region <region name>. When prompted for the application name, choose the application you created previously.
  3. eb terminate <environment name>. This will terminate the environment.

To create a new environment, perform eb create.

Upvotes: 1

Related Questions