Skip to content

Instantly share code, notes, and snippets.

@maxp-edcast
Last active November 11, 2017 04:31
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 maxp-edcast/9d7bbf0e28a4666dc2b492403cbc5d3b to your computer and use it in GitHub Desktop.
Save maxp-edcast/9d7bbf0e28a4666dc2b492403cbc5d3b to your computer and use it in GitHub Desktop.
test.md
### AWS setup
#### General setup
1. Make sure python 2.7 is installed:
- `python --version`
2. Make sure pip is installed
- `brew install pip`
3. Install the aws command line tool
- `pip install awscli`
4. Install the elastic beanstalk command line tool
- `brew install awsebcli`
5. Navigate into the edcast repo's folder
6. run `eb init`
- For the region, choose the first option (us-east-1)
- ask a supervisor for access & secret keys.
- ask a supervisor which environment you should have access to.
#### using SSH
1. Ask a supervisor for a `cmprod.pem` file and move it into the `~/.ssh` folder.
2. Run `chmod 600 ~/.ssh/cmprod.pem`
3. Run `eb ssh` and type `yes` when it asks if you would like to add the key to your keychain.
4. Once connected via SSH, to access the application's source code, perform the following steps
1. `sudo docker ps`
   2. Copy the desired value from the `CONTAINER ID` column
3. Run `sudo docker exec -it $CONTAINER_ID rails c` using the copied value.

AWS setup

General setup

  1. Make sure python 2.7 is installed:

    • python --version
  2. Make sure pip is installed

    • brew install pip
  3. Install the aws command line tool

    • pip install awscli
  4. Install the elastic beanstalk command line tool

    • brew install awsebcli
  5. Navigate into the edcast repo's folder

  6. run eb init

    • For the region, choose the first option (us-east-1)
    • ask a supervisor for access & secret keys.
    • ask a supervisor which environment you should have access to.

using SSH

  1. Ask a supervisor for a cmprod.pem file and move it into the ~/.ssh folder.

  2. Run chmod 600 ~/.ssh/cmprod.pem

  3. Run eb ssh and type yes when it asks if you would like to add the key to your keychain.

  4. Once connected via SSH, to access the application's source code, perform the following steps

    1. sudo docker ps    2. Copy the desired value from the CONTAINER ID column
    2. Run sudo docker exec -it $CONTAINER_ID rails c using the copied value.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment