AWS Setup

TO DO List for a new Instance


  1. SSH to new instance with default "ec2-user" credentials from active AWS Instance
     
  2. su to root user
     
  3. Update "/etc/resolv.conf" with bind server information
     
    ; generated by /sbin/dhclient-script
    search aws.datascantech.com us-west-2.compute.internal datascantech.com
    nameserver 10.65.20.199
    nameserver 10.65.0.2
     
  4. change attribute to ignore for "/etc/resolv.conf" so that during next reboot the entries from previous step wont be replaced by AWS defaults
     
    1. chattr +i "/etc/resolv.conf"
       
  5. Update hostname with known value "<SHORT_NAME>.aws.datascantech.com"
  6. Update "/etc/hosts" file new host entry
     
  7. Update "/etc/sysconfig/network" file with subnet and hostname entries
     
  8. Add default route for DST Application specific Zone for the server.
     
    1. route add default gw 10.65.28.1
       
  9. Create wlapp (gid/uid:30017) user with default password
     
  10. Restart AWS instance for the changes to take place
     
  11. SSH as normal from putty (using ec2-user (or) root user and make sure to use configured "private key file for authentication"

No comments:

Post a Comment