Amazon EC2 basic usage

Install package

На примере nginx

$ sudo amazon-linux-extras list | grep nginx
 38  nginx1=latest            disabled      [ =stable ]

$ sudo amazon-linux-extras enable nginx1
 38  nginx1=latest            enabled      [ =stable ]

Now you can install:
$ sudo yum clean metadata
$ sudo yum -y install nginx

$ nginx -v
nginx version: nginx/1.16.1
Альтернативный вариант:

# Install Nginx
amazon-linux-extras install nginx1.12

# Back up existing config
mv /etc/nginx /etc/nginx-backup

# Download the configuration from S3
aws s3 cp s3://{my_bucket}/nginxconfig.io-example.com.zip /tmp

# Install new configuration
unzip /tmp/nginxconfig.io-example.com.zip -d /etc/nginx

Установка Terraform

sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://rpm.releases.hashicorp.com/AmazonLinux/hashicorp.repo
sudo yum -y install terraform

Сервисы Amazon для бесплатного использования на 1 год

Storage

  • Amazon S3 5Gb (20K get, 2K put)
  • Amazon CloudFront 50Gb (50Gb out traffik, 2M http{s} queries
  • Amazon EFS 5Gb (easy scaling for instances)
  • Amazon Elastic Block Storage 30Gb (SSD+HDD, 2M I/O ops, 1G for snapshots)

Containers

  • Amazon EC2 (750 h/month t2.micro, t3.micro Linux region dependence)
  • Amazon Elastic Container Registry (500Mb/month)

Databases

  • Amazon RDS (750h db.t2.micro MySQL, PostgreSQL)
  • Amazon ElastiCache (750h cache.t2micro, cache.t3.micro)

Config Management

  • AWS OpsWorks for Chef Automate (7500 hours/node = 10 nodes/month)
  • AWS OpsWorks for Puppet Enterprise (7500 hours/node = 10 nodes/month)