Amazon Web Service - AWS

From Embedded Workshop
Revision as of 23:26, 29 November 2018 by JMerkle (talk | contribs)
Jump to navigation Jump to search

Overview

  • Create AWS account (free, but requires credit card)
  • Create an Ubuntu instance (free, as long as you select the free EC2 variant, and your account is within the "one year free" grace period)

- after 173.678 Instance Hrs, I now owe $2.36 ($0.0116 / instance hr.)

  • Install software on Ubuntu instance

https://aws.amazon.com/

AWS Life Cycle https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html

Connecting in for the first time https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AccessingInstancesLinux.html

For the Amazon Linux instance, use "ec2-user" for login and keypair file for authentication

Check available storage

[ec2-user@ip-172-31-27-115 ~]$ df
Filesystem     1K-blocks    Used Available Use% Mounted on
devtmpfs          494152      60    494092   1% /dev
tmpfs             504716       0    504716   0% /dev/shm
/dev/xvda1       8123812 1101424   6922140  14% /

Check RAM usage

[ec2-user@ip-172-31-27-115 ~]$ free
             total       used       free     shared    buffers     cached
Mem:       1009432     183080     826352         60       8864     120184
-/+ buffers/cache:      54032     955400
Swap:            0          0          0


yum check-update yum install apache2 sudo service --status-all

https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Tutorials.WebServerDB.CreateWebServer.html

proc]$ cat version Linux version 4.14.77-70.59.amzn1.x86_64 (mockbuild@gobi-build-64001) (gcc version 7.2.1 20170915 (Red Hat 7.2.1-2) (GCC)) #1 SMP Mon Nov 12 22:02:45 UTC 2018 [ec2-user@ip-172-31-27-115 proc]$

https://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Red_Hat_Linux

mysql> CREATE USER 'new_mysql_user'@'localhost' IDENTIFIED BY 'THISpasswordSHOULDbeCHANGED';

Username JMerkle