Difference between revisions of "AWS"

From rbachwiki
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 40: Line 40:


----
----
==Setting up amazon cli for backing up from terminal==
sudo apt-get install awscli
#check version
aws --version
#configure aws
aws configure
[https://linuxhint.com/install_aws_cli_ubuntu/ | website with installation instructions]
[[#Configuring SSH on Mac to auto login with certificate file|Back To Top]]-[[Main_Page| Home]]
[[#Configuring SSH on Mac to auto login with certificate file|Back To Top]]-[[Main_Page| Home]]

Latest revision as of 14:42, 15 May 2019

Configuring SSH on Mac to auto login with certificate file

Copy the .pem file to the ~/.ssh Directory
nano -w config
Host 14.28.31.173
IdentityFile ~/.ssh/nameofcertificate.pem
User usernameforlogin

Create EBS Volume On AWS

Volumes - Create Volume,
pick size
attach Volume to instance
Device: not mount point
go into terminal
become root (sudo -i)
format new volume
ls /dev/  this allows you to check the name of mount point of the new drive
mkfs -t ext4 /dev/xvdg or whatever the mount point is
cd into dir where you want to create a mount point for the new volume 
Example cd /var/www/website
Make new dir ( mkdir storage)
Edit the /etc/fstab file to load the new volume whenever the instance is restart
add this to the fstab file
/dev/xvdg (dev mount point) tab2x then /var/www/website/storage tab2x ext4 tab2x defaults tab2x 0 0 thats 2 zeros with a space in between
Save the file
df -h wil show the mount points. the one we added to the fstab will not show yet
mount -a will mount the new mount point from the fstab file

Amazon EC2 Server Setup

SSH into ec2

Download private key into a dir, then cd into dir

ssh -i privatekey.pem user@ipaddress

Setting up amazon cli for backing up from terminal

sudo apt-get install awscli
#check version
aws --version
#configure aws
aws configure

| website with installation instructions

Back To Top- Home