Skip to content

Deployment

Nathan Victor edited this page Nov 29, 2017 · 1 revision

We use AWS Elastic Beanstalk and have 2 environments, waterequity-dev and waterequity-production.

Commands

eb deploy waterequity-dev

-- or --

eb deploy waterequity-production

Setup

  • Necessary program to run command: awsebcli
  • Necessary credentials is to be a user with AWS access control to the team's AWSElasticBeanstalkService with a key by doing the following with your access key:
aws configure
AWS Access Key ID [None]: YOUR_KEY_ID
AWS Secret Access Key [None]: YOUR_SECRET_ACCESS_KEY
Default region name [None]: us-west-2
Default output format [None]: json
  • Necessary file not in source control:
# /django-project/.elasticbeanstalk/config.yml
branch-defaults:
  default:
    environment: waterequity-dev
    group_suffix: null
  production:
    environment: waterequity-production
global:
  application_name: waterequity
  branch: null
  default_ec2_keyname: aws-eb
  default_platform: Python 2.7
  default_region: us-west-2
  include_git_submodules: true
  instance_profile: null
  platform_name: null
  platform_version: null
  profile: null
  repository: https://github.com/salvaorenick/waterequity
  sc: null
  workspace_type: Application
Clone this wiki locally