All Flashcards
IAM
Identity Access Management
Starts with a root account by default, that shouldn’t be used.
Groups: contain users, but not other groups
Users: can be part of multiple groups
Policies: can be assigned to users and groups. They define the access permission.
Password and access definition.
All sub items:
- IAM Roles
- IAM Credentials Report
- IAM Access Advisor
IAM Roles
An IAM Role have two elements:
- Policies that define their access
- Trust to define which entity it can be trusted
IAM Credentials Report
List of all users and their credentials
IAM Access Advisor
Show users permissions ad when were last accessed
IAM Best Practices
- Don’t use root account
- One physical user = one AWS user
- Create Groups
- Create Strong password policy
- Enforce MFA
- Create and use Roles
EC2
What are the 8 choices?
Elastic Compute Cloud
Service to host server instances.
Choose:
- OS,
- CPU,
- RAM,
- Storage (EBS and EFS or EC2 Istance Store)
- Network Card,
- Firewall Rules (Security Group),
- Bootstrap script (EC2 User Data)
- Instance Type
EC2 User Data
Script to run ate the boot of EC2
All Commands run as sudo
EC2 Instance Types
How are they named and which are the 4 types?
m5.2xlarge
m: the instance class
5: generation
2xlarge: size inside the class
Types:
- Compute Optimized: for compute intensive tasks
- Memory Optimized: for processing large datasets
- Storage Optimized: for storage intensive tasks: segmental read and write large datasets
- General pupose: balanced
Security Groups
Control traffic into or out of EC2 Instances
Only contain ALLOW rules
Can be attached to multiple instances
Can authorize other security groups
EC2 Instances Purchasing Options (6)
- On Demand
- EC2 Reserved Instances
- EC2 Saving Plans
- EC2 Spot Instances
- EC2 Dedicated Hosts
EC2 On Demand Instance
How is it priced?
- Pay for what you use
- High Cost
EC2 Reserved Instances
- reserve specific attributes: type, region, AZ, tenancy
- you can’t change them for the reserved time: 1 to 3 years
- there is the Convertible Reserved Instance, which you can change some attributes only, but doesn’t have much discount
EC2 Saving Plans
- commit to a base usage that will be charged (10$/ hour for 3 years)
- if the usage is passed, it will be charged as demand
- instance family and region is locked
EC2 Spot Instances
- AWS capacity that is not being used, is selled at a discount price
- you pay for the spot price that changes
- you can set a max price to pay, if the spot price goes above it, the instance will be lost
- ideal for workload resilient to failure
- cheaper option
EC2 Dedicated Hosts
- most expansive purchase option
- physical EC2 fully dedicated
- can be on demand or reserved
- allows for compliance requirements and existing serverbound software licenses