AWS

AWS related

Steps to fix SSH/Perm issue Linux instance

  1. Stop an instance 2. Detach root volume from i-xxxxxxx  and make a note of volume id 3. Launch new temporary instance with base install(or use existing working instance that can be used temporarily which doesn’t have production impact) 4. Attach volume from step 2 to instance from step 3. 5. Once volume is… read more »

Remove all current jobs on the pipeline

Cancel all the jobs on the pipeline “xxxxxxxxxxxxxxxxxx” still on “Submitted” status   Prerequisite : AWS Cli and IAM user with ETS permission   for JOB in $(aws elastictranscoder list-jobs-by-status –status Submitted –output text | grep arn | grep Submitted | awk ‘{print $3}’); do aws elastictranscoder cancel-job –id $JOB && echo -e ” JOBID => $JOB… read more »

Install Passenger/Ruby/Rails/Nginx on Amazon AMI

sudo su – yum update -y yum install -y curl curl-devel nano sqlite-devel libyaml-devel gpg gcc gcc-c++ make epel-release *** install RVM **** gpg –keyserver hkp://keys.gnupg.net –recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 curl -sSL https://get.rvm.io | sudo bash -s stable sudo usermod -a -G rvm whoami if sudo grep -q secure_path /etc/sudoers; then sudo sh -c “echo export rvmsudo_secure_path=1… read more »

Sidebar