Elastic BeanStalk command line usage create application, create environment, deploy, terminate, git branch

Elastic BeanStalk 
#create elastic bean stalk applicaiton
eb init
#create elastic bean stalk environment for current applicaiton
eb create

#push current branch the code to current default environment of current applicaiton
eb deploy

# list environment for the current application
eb list

#set default environment name for git branch
eb use

#connect to ec2 instace
eb ssh
#show slogs
eb logs


#open amazon console of elasticbean for this application
eb console

#check environment health
eb health

#sets environment variable of the current environment, current applicaton
eb setenv name="ikbhal" age=20

#print the enviroment variable of the current enviromnet, current application
eb printenv

#status of the environment
eb status
status: updating, terminating
health: Grey, Green

#terminate the environment
eb terminate

#list all the git branch
git branch

#change the git branch
git chekcout

#delete the git branch
git branch -d
note: you can not delete the current branch

#to force delte git branch
git branch -D


#merge to master
git checkout master
git merge

No comments:

Post a Comment