
1. ENI (Elastic Network Interface)
1.1. Private
1.2. BASIC
1.2.1. Can connect more than 1 to an EC2
1.2.1.1. i.e 1 for each subnet
1.2.2. Must be within your AZ
1.2.3. Can enable two ips for 1 eni
1.2.3.1. Public
2. All instances supported
3. VPC
4. TROUBLESHOOTING
4.1. Act as a virtual firewall, controlling the traffic that is allowed to reach and leave the resources that it's associated with. For example, after yo uassociate a security group with an EC2 Instance, it controls the inbound and outbound traffic for the instance.
4.2. EC2 Connection button
4.2.1. Access can come from another EC2 Instance, to find out the rangeo of the ip, check the IP Ranges by location
4.2.1.1. IP RANGES
4.3. Instance loses the ip address when stopped but does not lose when rebooting
5. ACCESS
5.1. KEY PAIR
6. SECURITY GROUP
7. Elastic IP address
7.1. IP ADDRESS
7.1.1. IP Addressing
7.1.1.1. PRIVATES
7.1.1.1.1. CLASS A
7.1.1.1.2. CLASS B
7.1.1.1.3. CLASS C
7.1.1.2. PUBLICs
7.1.1.2.1. Public subnet is when your instance has 2 ips (1 public and one private
7.1.1.2.2. Only public subnet can see the Internet Gateway
7.1.1.3. Versioning
7.1.1.3.1. IPV6
7.1.1.3.2. IPV4
8. EBS (Elastic Block Storage)
8.1. Volume Types
8.1.1. gp3
8.1.1.1. Short Description
8.1.1.1.1. Lowest cost SSD volume that balances price performance for a wide variety of transactional workloads
8.1.1.2. Durability
8.1.1.2.1. 99.8% - 99.9% durability
8.1.1.3. Uses Cases
8.1.1.3.1. Virtual desktops, medium sized single instance databases such as Microsoft SQL Server and Oracle, latency sensitive interactive applications, boot volumes, and dev/test environments
8.1.1.4. API Name
8.1.1.4.1. gp3
8.1.1.5. Volume Size
8.1.1.5.1. 1 GB - 16 TB
8.1.1.6. MaxIOPS/Volume
8.1.1.6.1. 16,000
8.1.1.7. Max Throughput*/Volume
8.1.1.7.1. 1,000 MB/s
8.1.1.8. Max IOPS/Instance
8.1.1.8.1. 260,000
8.1.1.9. Price
8.1.1.9.1. $0.08/GB-month
8.1.1.9.2. 3,000 IOPS free and
8.1.1.9.3. $0.005/provisioned IOPS-month over 3,000;
8.1.1.9.4. 125 MB/s free and
8.1.1.9.5. $0.04/provisioned MB/s-month over 125
8.1.1.10. Max Throughput/Instance
8.1.1.10.1. 7,500 MB/s
8.1.2. gp2
8.1.2.1. Short Description
8.1.2.1.1. General Purpose SSD volume that balances price performance for a wide variety of transactional workloads
8.1.2.2. Durability
8.1.2.2.1. 99.8% - 99.9% durability
8.1.2.3. Uses Cases
8.1.2.3.1. Virtual desktops, medium sized single instance databases such as Microsoft SQL Server and Oracle, latency sensitive interactive applications, boot volumes, and dev/test environments
8.1.2.4. API Name
8.1.2.4.1. gp2
8.1.2.5. Volume Size
8.1.2.5.1. 1 GB - 16 TB
8.1.2.6. MaxIOPS/Volume
8.1.2.6.1. 16,000
8.1.2.7. Max Throughput*/Volume
8.1.2.7.1. 250 MB/s
8.1.2.8. Max IOPS/Instance
8.1.2.8.1. 260,000
8.1.2.9. Max Throughput/Instance
8.1.2.9.1. 7,500 MB/s
8.1.2.10. Price
8.1.2.10.1. $0.10/GB-month
8.2. Only pay for what you use
8.2.1. 20GB of EBS and 10GB in use - 10 GB will be billed
8.3. MOVING EBS
8.3.1. To a different AZ
8.3.1.1. Example
8.3.1.1.1. US-EAST-1C
8.3.1.1.2. US-EAST-1A
8.4. Lifecycle Manager
8.4.1. Best practice
8.4.1.1. Tag your EBS volumes and apply using tags
9. TYPES
9.1. RESERVED INSTANCE
9.1.1. 1 - STANDARD
9.1.1.1. $ (CHEAPER)
9.1.1.1.1. Less Flexible
9.1.2. 2 - CONVERTIBLE
9.1.2.1. $$ (MORE EXPENSIVE)
9.1.2.1.1. More Flexible
9.2. SAVING PLANS
9.2.1. Compute Saving Plan
9.2.1.1. 1-3 years
9.2.1.2. Apply to
9.2.1.2.1. Services
9.2.1.2.2. Any
9.2.2. EC2 Saving Plan
9.2.2.1. 1-3 years
9.2.2.2. Must select
9.2.2.2.1. Region
9.2.2.2.2. Family
9.2.2.2.3. Any
10. 125 MB/s free and
11. cscsc
12. 1. Template
12.1. Userdata
12.1.1. Used to run scripts at startup
13. ENA (Elastic Network Adapter)
13.1. ADVANCED
13.1.1. MORE SPEED
13.1.1.1. Some instances supported
14. PLACEMENT GROUPS
14.1. CLUSTER
14.1.1. Region
14.1.1.1. Availability Zone (AZ)
14.1.1.1.1. Creates next to each other (Same Hack
14.1.1.1.2. Fast Performance
14.2. PARTITION
14.2.1. Same Regions
14.2.1.1. Store in blocks
14.2.1.1.1. AZ 1
14.2.1.1.2. AZ 2
14.3. SPREAD
14.3.1. Slow performance
14.3.2. Different hacks
14.3.2.1. Region
14.3.2.1.1. AZ 1
14.3.2.1.2. AZ 2
15. EFA (Elastic Fabric Adapter)
15.1. HIGH SPEED
15.1.1. WORKLOAD EXAMPLES
15.1.1.1. MACHINE LEARNING (ML)
15.1.1.1.1. Some instances supported
16. BILLING
16.1. Charge
16.1.1. Commercial versions
16.1.1.1. SO
16.1.1.1.1. Windows
16.1.1.1.2. Red Hat EL (Commercial version)
16.1.1.1.3. Suse ES
16.1.1.2. Minimum
16.1.1.2.1. 1 hour
16.1.2. Linux
16.1.2.1. by Seconds
16.1.2.1.1. Minimum
16.1.2.1.2. Example usage
16.1.3. EBS (Elastic Block Storage)
16.1.3.1. By Seconds
16.1.3.1.1. Minimum
16.2. INSTANCE
16.2.1. EBS
16.2.1.1. Billed when the Instance is on stopped state
16.2.1.2. RAM and EBS is billed when in Hibernated state
17. HIBERNATING
17.1. Can go to the state
17.1.1. Only on-demand instances
17.1.2. Reserved Linux
17.2. The content in RAM can be maintained
17.2.1. Pre requisite
17.2.1.1. Only if you enabled it on instance creation
18. SCENARIOS AND USABILITY
18.1. What do you need?
18.1.1. Instance can reach the internet but can't be reachable by internet
18.1.1.1. Use NAT Gateway
18.1.1.1.1. NAT Gateway (NGW) allows instances with no public IPs to access the internet.
18.1.2. Intance needs to reach and be reachable by Internet
18.1.2.1. Internet Gateway
18.1.2.1.1. Internet Gateway (IGW) allows instances with public IPs to access the internet.
19. AUTO SCALING
19.1. SCALING UP
19.1.1. INCREASE THE RESOURCES HORIZONTAL
19.1.1.1. Take the instance and increase the resources get "bigger"
19.2. SCALING OUT
19.2.1. INCREASE THE RESOURCES VERTICALLY
19.2.1.1. GETS MULTIPLES INSTANCES
20. Elastic IP address
20.1. IP ADDRESS
20.1.1. IP Addressing
20.1.1.1. PRIVATES
20.1.1.1.1. CLASS A
20.1.1.1.2. CLASS B
20.1.1.1.3. CLASS C
20.1.1.2. PUBLICs
20.1.1.2.1. Public subnet is when your instance has 2 ips (1 public and one private
20.1.1.2.2. Only public subnet can see the Internet Gateway
20.1.1.3. Versioning
20.1.1.3.1. IPV6
20.1.1.3.2. IPV4
21. PRICING
21.1. ON-DEMAND
21.1.1. $$ - MEDIUM PRICE
21.1.1.1. No Discount
21.1.1.2. No Contract
21.2. RESERVED (1-3 Years)
21.2.1. CHEAPER ($)
21.2.1.1. 75% discount
21.3. SPOT INSTANCE
21.3.1. BID
21.3.1.1. 90% DISCOUNT
21.3.2. Can be terminated at any time
21.4. DEDICATED INSTANCE
21.4.1. It's still a VM
21.4.2. Exclusive Hardware
21.4.3. $$$$ (EXPENSIVE)
21.5. SAVING PLANS
21.5.1. SERVICES
21.5.1.1. EC2
21.5.1.2. FARGATE
21.5.1.3. LAMBDA
21.5.2. Pay
21.5.2.1. per hour
21.5.2.1.1. i.e. Choose 1000 hours
22. INSTANCE LIFECYCLE (STATES)
22.1. IAM
22.1.1. Check the privilege/Access to create the instance
22.1.1.1. =>
22.1.1.1.1. PENDING
23. ACCESS EC2 TO S3
23.1. IAM User
23.1.1. NOT SECURE
23.1.1.1. Keeps the Access Key and Secret stored in ".aws"
23.1.2. Uses
23.1.2.1. Access Key ID
23.1.2.2. Secret Access Key ID
23.2. IAM Roles
23.2.1. Assigning the role to EC2 uses the permission set to that role.
24. AWS IAM
25. Amazon RDS (Relational Database Service)
25.1. You don't need to create an Instance to use RDS
25.1.1. You go to RDS service and start setting up the settings and it will create an RDS database under an EC2 Instance