ALL HOW TOs





References:



AWS Console → All Services → Compute → Elastic Beanstalk → change Ohio to N. Virginia in top menu

AWS Console → Storage → S3 → Buckets → search for app name




Logs

click Logs in left side menu


eb logs      # equivalent to tail -100
eb logs -a   # download all logs to local directory  in rails app .elasticbeanstalk/l

 

ssh to AWS


Debugging on AWS

Working with Solr

Using eb cli

Ref: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb3-ssh.html

Cool commands

commandexamplecomments
eb initeb init
  • us-east-1
  • choose _MACHINE_NAME_-int
  • choose default environment (will vary)
  • type n when asked about CodeCommit
eb listeb listshows all servers you can connect to
eb ssheb ssh _MACHINE_NAME_-stg

connect to default or a specific server (see eb list for server names)

app at:  /var/app/current

eb printenv

eb setenv _NAME_=_VALUE_
set environment vars from command line
aws logs

aws
elasticbeanstalk restart-app-server
aws elasticbeanstalk restart-app-server --environment-name my-env


Updating bundler on AWS

Article: Update Bundler on AWS Elastic Beanstalk

In app on laptop (e.g. CUL-IT/qa_server)

At app root in terminal on laptop

Commit