Skip to content

Instantly share code, notes, and snippets.

@gunjanpatel
Last active August 29, 2015 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gunjanpatel/35a066290258c82ecd9c to your computer and use it in GitHub Desktop.
Save gunjanpatel/35a066290258c82ecd9c to your computer and use it in GitHub Desktop.
amazon elastic beanstalk update environment

Amazon Elastic Beanstalk update file using git

  1. Create folder named as .elasticbeanstalk and create files named config and aws_credentials in the same folder.

    1. config
    [global]
    ApplicationName=<YourApplicationNameFromAWSConsole>
    AwsCredentialFile=.elasticbeanstalk/aws_credentials
    DevToolsEndpoint=git.elasticbeanstalk.<your-region-code>.amazonaws.com
    EnvironmentName=<EnvironmentNameFromAWSConsole>
    Region=<your-region-code>
    
    1. aws_credentials
    [global]
    AWSAccessKeyId=AKIAxxxxxxxxxxxxxxxxxxxxx
    AWSSecretKey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    
  2. Download the AWS command line tools and follow the instructions from README files.

  3. Use git init if you have not init files and then git commit your changes.

  4. Use git aws.push to push files on your elasticbeanstalk environment.


note if you get any pip than you may try to add it using following commands.

  1. sudo apt-get install python-pip
  2. sudo pip install boto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment