You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: aws.txt
+66-10
Original file line number
Diff line number
Diff line change
@@ -10,17 +10,38 @@ Advantages of moving to cloud
10
10
Concepts
11
11
Each region is an independent set of data centres.
12
12
13
-
**Availability zones**: interconnected data centres within the same region isolated from failures. They are connected with low latency network.
13
+
**Availability zones**: interconnected data centres within the same region isolated from failures. They are connected with low latency network. You can achieve high availability by deploying the data/components in two availability zones within the same region.
14
14
15
15
**Hybrid deployment**: mix of cloud and on premises.
16
16
17
-
You can achieve high availability by deploying the data/components in two availability zones within the same region
17
+
**Durability**: Probability that you will recover some persisted data in a given time.
18
+
**Availability**: Probability that you will access some data, any time in a given time.
19
+
20
+
5 Pillars for well architected cloud
21
+
Operational Excellence
22
+
Security
23
+
Reliability
24
+
Performance Efficiency
25
+
Cost Optimization
26
+
27
+
4 support plans
28
+
Basic
29
+
Developer
30
+
Business
31
+
Enterprise
18
32
19
33
Accessing AWS
20
34
Console
21
35
Cli
22
36
Sdk
23
37
38
+
SAML authentication flow
39
+
Protocol to federate your users to AWS console. The auth flow is:
40
+
The authenticated user in client's site triggers the federate functionality.
41
+
The portal generates a SAML authentication response that includes assertions and attributes about the user
42
+
The client browser is then redirected to the AWS single sign-on endpoint posting the SAML assertion
43
+
The AWS console endpoint validates the SAML assertion and generates a redirect to access the management console (suing STS)
44
+
The browser follows the redirect which brings into the AWS console as an authenticated user
24
45
25
46
Services
26
47
**Elastic load balancing**: Distributed load across multiple EC2 instances
@@ -63,9 +84,9 @@ Database services
63
84
64
85
Security and identity services
65
86
66
-
**Identity and access management (Iam)**: creation of users and groups and use permissions to allow and deny access to their AWS.
87
+
**Identity and access management (IAM)**: creation of users and groups and use permissions to allow and deny access to their AWS.
67
88
68
-
**Key management service (kms)**: creates and controls encryption keys. Integrates with other services to encrypt data.
89
+
**Key management service (KMS)**: creates and controls encryption keys. Integrates with other services to encrypt data.
69
90
70
91
**Directory service**: set up and run Microsoft active directory.
71
92
@@ -98,34 +119,68 @@ Simple Storage Service (S3)
98
119
99
120
Provides REST API with CRUD (create read update delete) operations
100
121
101
-
You don’t have to worry about storage limits or capacity planning or durability. Efficient for frequently accessed data.
122
+
You don't have to worry about storage limits or capacity planning or durability. Efficient for frequently accessed data.
102
123
103
124
Each bucket can hold unlimited objects of up to 5TB and lives in a single region.
104
125
105
126
Each object is identified with a key and has metadata associated
106
127
107
-
**Concurrency**: Eventual consistency for updated data and read-after-write for new data.
Can be used to host static websites with **<bucket-name>.s3-website-<AWS-region>.amazonaws.com** You can use Cloudfront as a CDN to make the website fast globally. You can configure redirects
131
+
132
+
Only the owner of an Amazon S3 bucket can permanently delete a version.
133
+
134
+
S3 can achieve at least 3,500 PUT/POST/DELETE and 5,500 GET requests per second per prefix in a bucket (you can use random prefixes to increase the throughput in data-intensive applications).
135
+
136
+
Max object size: 5TB. Min object size: 0bytes, except for S3 IA that has a min size of 128kb. Default maximum number of buckets per region: 100
137
+
138
+
You can write objects directly to an edge location to reduce latency to some users.
139
+
140
+
**Concurrency**: Eventual consistency for updated data and read-after-write for new data Updates are atomic: requesting a file immediately after an update will give you either the old data or the new data (no partially updated or corrupted data).
108
141
109
142
**Access control**: iam policies, query string auth and s3 bucket policies.
110
143
111
144
You can use prefixes for object hierarchy aggregation.
112
145
113
-
**Reduce Redundancy Storage (RRS)**: strategy with cheaper price less redundancy
114
-
**Infrequent Access (IA)**: strategy with les bandwidth.
You can set lifecycle rules: where data is moved to IA or RRS.
117
150
118
151
Supports versioning if objects.
119
152
120
153
**MFA delete**: Deleting an object requires an extra token.
121
154
122
-
**Cross region replication**: async replicate all objects to another region. Good to reduce latency
155
+
**Cross region replication (CRR)**: async replicate all objects to another region. Good to reduce latency. Requires src and dst with versioning enabled, correct S3 permissions, and different regions.
123
156
124
157
You can set up **logging** of requests.
125
158
126
159
**Events notifications** can be sent after events such as upload. Can be sent to an SQS, SNS, or a lambda.
127
160
128
161
You can specify world readable, IAM permissions or temporary public URLs that expire.
162
+
Durability & Availability table
163
+
**Class Durability Availability
164
+
STANDARD 99,999999999% 99,99%
165
+
STANDARD_IA 99,999999999% 99,9%
166
+
ONEZONE_IA 99,999999999% 99,5%
167
+
GLACIER 99,999999999% 99,99%*
168
+
REDUCED_REDUNDANCY 99,99% 99,99%**
169
+
170
+
Encryption
171
+
**SSE-S3**: fully managed encryption at rest.
172
+
**SSE-C**: encryption at rest with custom encryption keys (to be provided together with the uploaded or download the file). The key is not stored by AWS. Use this option if you want to maintain your own encryption keys, but don't want to implement or leverage a client-side encryption library.
173
+
**SSE-KMS**: encryption at rest using keys managed through the KMS service. Allows to define fine grained permissions based on the permissions of KMS keys. Best solution for compliance (PCI-DSS, HIPAA, etc.).
174
+
175
+
Transfer optimizations
176
+
**S3 transfer acceleration**: Improves latency.
177
+
HTTP multi-part upload to transfer big files.
178
+
**Snowball**: For transferring massive amounts of data.
179
+
**Storage gateway**: If your storage needs to exist also on premise (hybrid cloud storage).
180
+
Storage gateway offers 2 main volume modes:
181
+
**Cached volumes**: Stores files in the cloud and keeps a local cache to speed up reads
182
+
**Stored volumes**: Optimized for low latency, stores files locally and asynchronously sends back up point-in-time snapshots to S3.
183
+
129
184
130
185
Amazon Glacier
131
186
Low-cost storage service, good for long term backups and for infrequently used data storage.
@@ -134,6 +189,8 @@ Amazon Glacier
134
189
You can also specify lock policies, such as write once read many (WORM).
135
190
You can retrieve 5% of the data for free every month.
136
191
Encryption at rest can not be disabled.
192
+
Files can be restored through the web console or the S3 API (RestoreRequest action).
193
+
137
194
138
195
Elastic Compute Cloud (EC2)
139
196
Resizable compute capacity. Virtual machines are called **instances**.
Copy file name to clipboardexpand all lines: socialEngineering.txt
+42-2
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,48 @@ How to make friends and influence people
57
57
58
58
Praise every improvement someone does, they will be happy you do so.
59
59
60
+
61
+
The Compound Effect
62
+
Have healthy habits, it might take you years to achieve your goals but doing 10 actions a day towards that will help you to achieve it. The opposite for unhealthy habits (TV, fast food, etc..). Have exceptions but get a healthy routine.
63
+
**Take ownership of your failures**: no matter what happens to you, take responsibility for it. You are freed by your choices.
64
+
65
+
**Track actions taken to achieve or to fail a goal**: It helps to focus on the problem and makes you aware of those actions.
66
+
67
+
Every dollar you spend and not invest is 5-10 dollars you lose in 10 years time.
68
+
69
+
Replace bad behaviour habits with healthier ones. Identify them first. For example, drink carbonated water instead of cola. Find money you waste every month (Netflix, insurance, Starbucks), does it really give you happiness? Change the habit.
70
+
71
+
Invest early: Compound effect will make your money grow.
72
+
73
+
What motivates you is the ignition of your passion. You need to identify what you want to achieve to make a difference this time and not fail like the other ones. The power of why makes you stick to the habits. Otherwise, you will revert to sleepwalking through poor choices
74
+
75
+
Taking actions that align with your core values will make you happy. If you hang out with people with different values you won’t we happy.
Identify behaviours leading to that goal and the ones blocking you from achieving it. People fit have good gym habits, people thin have good food habits, etc...
80
+
81
+
Monitor how much time you spend watching tv, reading news etc and change habits. News tend to be negative and depressing, avoid speending too much time on them.
82
+
83
+
If you tell friends or people about your goals and tracking you are more likely to commit to them due to social pressure
84
+
85
+
Competition also helps to stick to the habits, get your friends or coworkers to work with you
86
+
87
+
88
+
You are a badass
89
+
90
+
You need to stop wanting to do something and start doing something about it
91
+
92
+
And the day come when the risk to remain tight in a bud was more painful than the risk it took to blossom
93
+
94
+
If you want to live a life you've never lived, you have to do things you've never done.
95
+
96
+
Most people are living in an illusion based on someone else's beliefs. You have been raised by your family and your thinking is influenced by it, society has many expectations that are not necessarily going to give you happiness.
97
+
98
+
(not such a good book, gave up on it).
99
+
100
+
Others
101
+
**Lemons market** The buyers know more about the product than the buyer (like used cars), the cheaper product wins.
60
102
Things to avoid:
61
103
Do not say 'like'
62
104
Do not apologize for everything
@@ -65,5 +107,3 @@ How to make friends and influence people
65
107
Do not talk too loud
66
108
Do not interrupt people
67
109
No nail biting
68
-
69
-
**Lemons market** The buyers know more about the product than the buyer (like used cars), the cheaper product wins.
0 commit comments