-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9066845
commit c4f4521
Showing
111 changed files
with
26,534 additions
and
1,826 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- | ||
title: "Create 2 bucket " | ||
date: "`r Sys.Date()`" | ||
weight: 1 | ||
chapter: true | ||
pre: " <b> 2.1 </b> " | ||
--- | ||
|
||
### Create 2 bucket | ||
|
||
1. At **AWS Management Console**, find **S3** and select **S3**. | ||
|
||
![S3console](/images/2.prerequisite/20.png) | ||
|
||
2. At **S3** console, select **Create bucket**. | ||
|
||
![CreateBucket](/images/2.prerequisite/21.png) | ||
|
||
3. In create bucket steps: | ||
|
||
- For **AWS Region**, select **Asia Pacific (Singapore) ap-southeast-1**. | ||
- For **Bucket name**, insert **`logging-workshop`**. | ||
|
||
![CreateBucket](/images/2.prerequisite/22.png) | ||
|
||
4. Tiếp tục: | ||
|
||
- For **Block Public Access settings for this bucket**, untick **Block all public access**. | ||
- For **Turning off block all public access might result in this bucket and the objects within becoming public**, confirm this. | ||
|
||
![CreateBucket](/images/2.prerequisite/23.png) | ||
|
||
5. Scroll down, select **Create bucket**. | ||
|
||
![CreateBucket](/images/2.prerequisite/24.png) | ||
|
||
6. Confirm bucket is created successfully. | ||
|
||
![CreateBucket](/images/2.prerequisite/25.png) | ||
|
||
7. Continue creating bucket **logging-workshop-destination** | ||
|
||
- For **AWS Region**, select **Asia Pacific (Singapore) ap-southeast-1**. | ||
- For **Bucket name**, insert **`logging-workshop-destination`**. | ||
- No need to untick **Block Public Access settings for this bucket**. | ||
- Scroll down, select **Create bucket**. | ||
- Confirm bucket is created successfully. | ||
|
||
![CreateBucket](/images/2.prerequisite/39.png) | ||
![CreateBucket](/images/2.prerequisite/40.png) | ||
![CreateBucket](/images/2.prerequisite/41.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- | ||
title: "Tạo 2 bucket" | ||
date: "`r Sys.Date()`" | ||
weight: 1 | ||
chapter: true | ||
pre: " <b> 2.1 </b> " | ||
--- | ||
|
||
### Tạo 2 bucket | ||
|
||
1. Truy cập vào **AWS Management Console**, tìm **S3** và chọn **S3**. | ||
|
||
![S3console](/images/2.prerequisite/20.png) | ||
|
||
2. Trong giao diện **S3**, chọn **Create bucket**. | ||
|
||
![CreateBucket](/images/2.prerequisite/21.png) | ||
|
||
3. Trong giao diện create bucket: | ||
|
||
- Mục **AWS Region**, chọn **Asia Pacific (Singapore) ap-southeast-1**. | ||
- Mục **Bucket name**, nhập **`logging-workshop`**. | ||
|
||
![CreateBucket](/images/2.prerequisite/22.png) | ||
|
||
4. Tiếp tục: | ||
|
||
- Mục **Block Public Access settings for this bucket**, bỏ chọn **Block all public access**. | ||
- Mục **Turning off block all public access might result in this bucket and the objects within becoming public**, xác nhận mục này. | ||
|
||
![CreateBucket](/images/2.prerequisite/23.png) | ||
|
||
5. Kéo xuống dưới cùng, chọn **Create bucket**. | ||
|
||
![CreateBucket](/images/2.prerequisite/24.png) | ||
|
||
6. Xác nhận bucket đã được tạo thành công. | ||
|
||
![CreateBucket](/images/2.prerequisite/25.png) | ||
|
||
7. Tiếp tục tạo bucket **logging-workshop-destination** | ||
|
||
- Mục **AWS Region**, chọn **Asia Pacific (Singapore) ap-southeast-1**. | ||
- Mục **Bucket name**, nhập **`logging-workshop-destination`**. | ||
- Không cần bỏ chọn mục **Block Public Access settings for this bucket**. | ||
- Kéo xuống dưới cùng, chọn **Create bucket**. | ||
- Xác nhận bucket đã được tạo thành công. | ||
|
||
![CreateBucket](/images/2.prerequisite/39.png) | ||
![CreateBucket](/images/2.prerequisite/40.png) | ||
![CreateBucket](/images/2.prerequisite/41.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
title: "Update logging permission " | ||
date: "`r Sys.Date()`" | ||
weight: 2 | ||
chapter: true | ||
pre: " <b> 2.2 </b> " | ||
--- | ||
|
||
### Cập nhật quyền tạo log cho S3 log delivery group | ||
|
||
1. Return to bucket console, select bucket **logging-workshop-destination**. Scroll down to section **Object Ownership**, select **Edit** | ||
|
||
![CreateBucket](/images/2.prerequisite/41-5.png) | ||
![CreateBucket](/images/2.prerequisite/42.png) | ||
|
||
2. Select **ACLs enabled**, confirm **I acknowledge that ACLS will be restored.**, select **Save changes**. This will make everythin in the **Access control list (ACL)** can create object. | ||
|
||
![CreateBucket](/images/2.prerequisite/43.png) | ||
|
||
3. Scroll down to section **Access control list (ACL)**, select **Edit**. | ||
|
||
![CreateBucket](/images/2.prerequisite/44.png) | ||
|
||
4. At **S3 log delivery group**, select **Write**, then **Save changes**. | ||
|
||
![CreateBucket](/images/2.prerequisite/45.png) | ||
|
||
5. Confrim **Write** for **S3 log delivery group**. | ||
|
||
![CreateBucket](/images/2.prerequisite/46.png) | ||
|
||
6. Return to bucket console. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
title: "Cập nhật quyền tạo log" | ||
date: "`r Sys.Date()`" | ||
weight: 2 | ||
chapter: true | ||
pre: " <b> 2.2 </b> " | ||
--- | ||
|
||
### Cập nhật quyền tạo log cho S3 log delivery group | ||
|
||
1. Quay về giao diện các bucket, chọn bucket **logging-workshop-destination**. Kéo xuống mục **Object Ownership**, chọn **Edit** | ||
|
||
![CreateBucket](/images/2.prerequisite/41-5.png) | ||
![CreateBucket](/images/2.prerequisite/42.png) | ||
|
||
2. Chọn **ACLs enabled**, xác nhận **I acknowledge that ACLS will be restored.**, nhấn **Save changes**. Bước này sẽ giúp những đối tượng trong **Access control list (ACL)** ngoài bucket owner có quyền tạo object. | ||
|
||
![CreateBucket](/images/2.prerequisite/43.png) | ||
|
||
3. Sau đó kéo xuống mục **Access control list (ACL)**, chọn **Edit**. | ||
|
||
![CreateBucket](/images/2.prerequisite/44.png) | ||
|
||
4. Tại mục **S3 log delivery group**, chọn quyền **Write**, sau đó **Save changes**. | ||
|
||
![CreateBucket](/images/2.prerequisite/45.png) | ||
|
||
5. Xác nhận quyền **Write** cho **S3 log delivery group**. | ||
|
||
![CreateBucket](/images/2.prerequisite/46.png) | ||
|
||
6. Trở vê giao diện các bucket. |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
title: "Upload file to S3 bucket " | ||
date: "`r Sys.Date()`" | ||
weight: 3 | ||
chapter: true | ||
pre: " <b> 2.3 </b> " | ||
--- | ||
|
||
### Upload file vào bucket | ||
|
||
1. Select bucket **logging-workshop**. Then, select **Upload**. | ||
|
||
![CreateBucket](/images/2.prerequisite/26.png) | ||
|
||
2. Select **Add files**. | ||
|
||
![CreateBucket](/images/2.prerequisite/27.png) | ||
|
||
3. Then: | ||
|
||
- Download **S3_logging_workshop.txt** here {{%attachments pattern=".txt"/%}} | ||
|
||
{{% notice note %}} | ||
Open in a new tab, **Ctrl + S** to save the file to your local. | ||
{{% /notice %}} | ||
|
||
- confirm the file is selected | ||
- Select **Upload**. | ||
|
||
![CreateBucket](/images/2.prerequisite/28.png) | ||
|
||
4. Confirm uploaded successfully. | ||
|
||
![CreateBucket](/images/2.prerequisite/29.png) |
1 change: 1 addition & 0 deletions
1
content/2-Prerequiste/2.3-upload/_index.vi.files/S3_logging_workshop.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This is S3 Logging Workshop FCJ. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
title: "Upload file vào bucket" | ||
date: "`r Sys.Date()`" | ||
weight: 3 | ||
chapter: true | ||
pre: " <b> 2.3 </b> " | ||
--- | ||
|
||
### Upload file vào bucket | ||
|
||
1. Chọn bucket **logging-workshop**. Trong giao diện bucket, chọn **Upload**. | ||
|
||
![CreateBucket](/images/2.prerequisite/26.png) | ||
|
||
2. Trong giao diện upload, chọn **Add files**. | ||
|
||
![CreateBucket](/images/2.prerequisite/27.png) | ||
|
||
3. Tiếp tục: | ||
|
||
- Tải xuống file **S3_logging_workshop.txt** tại {{%attachments pattern=".txt"/%}} | ||
|
||
{{% notice note %}} | ||
Bạn hãy mở file trong tab mới, nhấn **Ctrl + S** để lưu file về máy. | ||
{{% /notice %}} | ||
|
||
- Xác nhận file đã chọn thành công. | ||
- Chọn **Upload**. | ||
|
||
![CreateBucket](/images/2.prerequisite/28.png) | ||
|
||
4. Xác nhận file đã được tải lên thành công. | ||
|
||
![CreateBucket](/images/2.prerequisite/29.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
title: "Edit policy " | ||
date: "`r Sys.Date()`" | ||
weight: 4 | ||
chapter: true | ||
pre: " <b> 2.4 </b> " | ||
--- | ||
|
||
### Thêm policy cho bucket | ||
|
||
1. In **S3** console, select **logging-workshop** bucket. | ||
|
||
![CreateBucket](/images/2.prerequisite/30.png) | ||
|
||
2. Select **Permissions** tab. | ||
|
||
![CreateBucket](/images/2.prerequisite/31.png) | ||
|
||
3. for **Bucket policy**, select **Edit**. | ||
|
||
![CreateBucket](/images/2.prerequisite/32.png) | ||
|
||
4. Insert: | ||
|
||
```json | ||
{ | ||
"Version": "2012-10-17", | ||
"Statement": [ | ||
{ | ||
"Effect": "Allow", | ||
"Principal": "*", | ||
"Action": "s3:GetObject", | ||
"Resource": "arn:aws:s3:::logging-workshop/*" | ||
} | ||
] | ||
} | ||
``` | ||
|
||
![CreateBucket](/images/2.prerequisite/33.png) | ||
|
||
5. Chọn **Save changes** | ||
|
||
![CreateBucket](/images/2.prerequisite/34.png) | ||
|
||
6. Confirm updated successfully | ||
|
||
![CreateBucket](/images/2.prerequisite/35.png) |
Oops, something went wrong.