EC2 Ubuntu Server with 2GB S3 Pricing and Configuration

EC2 Ubuntu Server with 2GB S3 Pricing and Configuration

Pricing

  • EC2 Pricing:
    • Instance Type: Choose a small instance type like t2.micro or t3.micro.
    • Pricing:
      • t2.micro: Free tier eligible (750 hours per month for the first 12 months)
      • t3.micro: Approximately $0.0104 per hour
      • Monthly cost (t3.micro): ~$7.60 (assuming 730 hours in a month)
  • S3 Pricing:
    • Standard Storage: $0.023 per GB per month
    • Cost for 2GB: $0.046 per month

Total Monthly Cost Estimate:

  • EC2 (t3.micro): ~$7.60
  • S3 (2GB): ~$0.046
  • Total: ~$7.65

Configuration Steps

Setting Up EC2 Ubuntu Server

  1. Create an EC2 Instance:
    1. Go to the AWS Management Console.
    2. Navigate to the EC2 Dashboard and click "Launch Instance".
    3. Choose "Ubuntu Server 20.04 LTS" (or the desired version).
    4. Select the instance type (t3.micro or t2.micro).
    5. Configure instance details, add storage (default 8GB), and configure security groups (allow SSH traffic).
    6. Review and launch the instance. Download the key pair (.pem file) for SSH access.
  2. Access the EC2 Instance:
    ssh -i /path/to/your-key-pair.pem ubuntu@your-ec2-public-dns

Setting Up S3 Storage

  1. Create an S3 Bucket:
    1. Go to the S3 Dashboard in the AWS Management Console.
    2. Click "Create bucket".
    3. Enter a bucket name and select a region.
    4. Configure options as needed (e.g., versioning, encryption).
    5. Click "Create bucket".
  2. Upload Files to S3:
    aws s3 cp /path/to/local/file s3://your-bucket-name/

Additional Configuration

  1. Install Updates:
    
    sudo apt update
    sudo apt upgrade -y
                
  2. Install Necessary Software:
    
    sudo apt install nginx -y
    sudo apt install mysql-server -y
    sudo apt install docker.io -y
                
  3. Secure the Server:
    
    sudo ufw allow OpenSSH
    sudo ufw allow 'Nginx Full'
    sudo ufw enable
                
  4. Backup and Monitoring:

    Set up regular backups and monitoring using AWS services like CloudWatch and AWS Backup.

What's Your Reaction?

like

dislike

love

funny

angry

sad

wow