0%

AWS EC2 Fundamentals

Notes on EC2 Foundamentals!~

Tables

Option Description
EC2 User Data used to automate boot tasks such as installing updats/software and can be bootstrapping
Security Groups only contain allow rules, can reference by IP address or Security groups, acting as a “firewall” on EC2 instances
EC2 Instance Types
General Purpose extension to be used for dest files.
Memory Optimized for large database in memory use
Compute Optimized requiring high-performance processors (e.g., batch processing, media transcoding, high-performance computing, scientific modeling & machine learning, and dedicated gaming servers).
storage Optimized Storage Optimized EC2 instances are great for workloads requiring high, sequential read/write access to large data sets on local storage.
reserved Instances good for long workloads. You can reserve EC2 instances for 1 or 3 years.
  • HTTPS is HTTP with encryption and verification. The only difference between the two protocols is that HTTPS uses TLS (SSL) to encrypt normal HTTP requests and responses, and to digitally sign those requests and responses. As a result, HTTPS is far more secure than HTTP.
  • AWS may change the public address once the instance stopped and restarted. But the private address will not change.
  • it’s good to maintain one separate security group for SSH access
  • application gives a not accessible (time out) thats security group issue
  • ssh login
    • get instance public IP address
    • In terminal you access into the folder where you download instances ssh keys [end with .cer/.pem file]
    • type in ssh -i EC.cer ec2-user@x.xxx.xx.xxx
    • chmod 0400
    • again ssh -i EC.cer ec2-user@x.xxx.xx.xxx
    • connect!
    • logout/crl+g
  • EC2 Dedicated instances and hosts
    • instances on your own hardware
    • hosts you can access physical server, Dedicated Hosts are good for companies with strong compliance needs or for software that have complicated licensing models. This is the most expensive EC2 Purchasing Option available.
  • practice which pay plan suitable for your project
  • Spot instances termination flow
  • Spot fleets
    • Spot Fleet is a set of Spot Instances and optionally On-demand Instances. It allows you to automatically request Spot Instances with the lowest price.
    • stratiges: lowestPrice, diversified, capacityOptimized, priceCapacityOptimized