-
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.
Merge pull request #8 from FCJ-DNTU/9-clean-up
9 clean up
- Loading branch information
Showing
19 changed files
with
250 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,127 @@ | ||
+++ | ||
title = "Clean up resources" | ||
date = 2024 | ||
weight = 9 | ||
chapter = false | ||
pre = "<b>9. </b>" | ||
+++ | ||
--- | ||
title: "Clean Up Resources" | ||
date: 2024 | ||
weight: 9 | ||
chapter: false | ||
pre: "<b>9. </b>" | ||
--- | ||
|
||
#### Creating an Admininistrator Group | ||
### Clean Up Resources | ||
|
||
{{% notice note %}} | ||
**Note:** In the next section, we will explore Elastic Container Services and implement a CI/CD Pipeline, so we can skip some parts in the resource cleanup. | ||
{{% /notice %}} | ||
|
||
#### Clean Up Elastic Container Registry | ||
|
||
On the AWS Console interface: | ||
|
||
- Search for and select **Elastic Container Registry**. | ||
|
||
![9.1](/images/9-clean-up/9.1.png) | ||
|
||
You will see the two repositories we created earlier: | ||
|
||
- Select **fcjresbar-be**. | ||
- Click **Delete**. | ||
|
||
![9.2](/images/9-clean-up/9.2.png) | ||
|
||
- Confirm the **Delete** action. | ||
|
||
![9.3](/images/9-clean-up/9.3.png) | ||
|
||
Similarly, perform the same for the other repository: | ||
|
||
- Select **fcjresbar-fe**. | ||
- Click **Delete**. | ||
|
||
![9.4](/images/9-clean-up/9.4.png) | ||
|
||
- Confirm the **Delete** action. | ||
|
||
![9.5](/images/9-clean-up/9.5.png) | ||
|
||
#### Clean Up EC2 | ||
|
||
- Search for and select **EC2**. | ||
|
||
![9.6](/images/9-clean-up/9.6.png) | ||
|
||
- Select the EC2 instance we created, **FCJ-Lab-my-server**. | ||
|
||
![9.7](/images/9-clean-up/9.7.png) | ||
|
||
#### Delete Security Group | ||
|
||
- Search for and select **VPC**. | ||
|
||
![9.8](/images/9-clean-up/9.8.png) | ||
|
||
In the left panel: | ||
|
||
- Select **Security Groups**. | ||
- Choose **FCJ-Lab-sg-private**. | ||
- Click **Action**. | ||
- Select **Delete security groups**. | ||
|
||
![9.9](/images/9-clean-up/9.9.png) | ||
|
||
Similarly: | ||
|
||
- Select **Security Groups**. | ||
- Choose **FCJ-Lab-sg-public**. | ||
- Click **Action**. | ||
- Select **Delete security groups**. | ||
|
||
![9.10](/images/9-clean-up/9.10.png) | ||
|
||
#### Delete Role | ||
|
||
- Search for and select **IAM**. | ||
|
||
![9.11](/images/9-clean-up/9.11.png) | ||
|
||
In the left panel: | ||
|
||
- Select **Roles**. | ||
- Search for **customRWECRRole**. | ||
- Select the created role. | ||
- Click **Delete**. | ||
|
||
![9.12](/images/9-clean-up/9.12.png) | ||
|
||
- Enter `customRWECRRole`. | ||
- Click **Delete**. | ||
|
||
![9.13](/images/9-clean-up/9.13.png) | ||
|
||
#### Clean Up VPC | ||
|
||
- Search for and select **VPC**. | ||
- Select **VPC-Lab-vpc**. | ||
- Click **Action**. | ||
- Select **Delete VPC**. | ||
|
||
![9.14](/images/9-clean-up/9.14.png) | ||
|
||
#### Clean Up RDS | ||
|
||
On the AWS Console interface: | ||
|
||
- Search for and select **RDS**. | ||
|
||
![9.15](/images/9-clean-up/9.15.png) | ||
|
||
- Select **Databases**. | ||
- Choose the RDS instance we created. | ||
- Click **Action**. | ||
- Select **Delete**. | ||
|
||
![9.16](/images/9-clean-up/9.16.png) | ||
|
||
- Check **I acknowledge that upon instance deletion, automated backups, including system snapshots and point-in-time recovery, will no longer be available.** | ||
- Enter `delete me`. | ||
- Click **Delete**. | ||
|
||
![9.17](/images/9-clean-up/9.17.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 |
---|---|---|
@@ -1,10 +1,127 @@ | ||
+++ | ||
title = "Dọn dẹp tài nguyên" | ||
date = 2024 | ||
weight = 9 | ||
chapter = false | ||
pre = "<b>9. </b>" | ||
+++ | ||
--- | ||
title: "Dọn Dẹp Tài Nguyên" | ||
date: 2024 | ||
weight: 9 | ||
chapter: false | ||
pre: "<b>9. </b>" | ||
--- | ||
|
||
#### Creating an Admininistrator Group | ||
### Dọn Dẹp Tài Nguyên | ||
|
||
{{% notice note %}} | ||
**Lưu ý:** Trong phần tiếp theo, chúng ta sẽ tìm hiểu về Elastic Container Services và triển khai CICD Pipeline, vì vậy trong bước dọn dẹp tài nguyên, chúng ta có thể bỏ qua. | ||
{{% /notice %}} | ||
|
||
#### Dọn Dẹp Elastic Container Registry | ||
|
||
Trên giao diện AWS Console: | ||
|
||
- Tìm kiếm và chọn **Elastic Container Registry**. | ||
|
||
![9.1](/images/9-clean-up/9.1.png) | ||
|
||
Bạn sẽ thấy hai kho lưu trữ mà chúng ta đã tạo trước đó: | ||
|
||
- Chọn **fcjresbar-be**. | ||
- Nhấn **Delete**. | ||
|
||
![9.2](/images/9-clean-up/9.2.png) | ||
|
||
- Xác nhận hành động **Delete**. | ||
|
||
![9.3](/images/9-clean-up/9.3.png) | ||
|
||
Tương tự, thực hiện cho kho còn lại: | ||
|
||
- Chọn **fcjresbar-fe**. | ||
- Nhấn **Delete**. | ||
|
||
![9.4](/images/9-clean-up/9.4.png) | ||
|
||
- Xác nhận hành động **Delete**. | ||
|
||
![9.5](/images/9-clean-up/9.5.png) | ||
|
||
#### Dọn Dẹp EC2 | ||
|
||
- Tìm kiếm và chọn **EC2**. | ||
|
||
![9.6](/images/9-clean-up/9.6.png) | ||
|
||
- Chọn EC2 mà chúng ta đã tạo, **FCJ-Lab-my-server**. | ||
|
||
![9.7](/images/9-clean-up/9.7.png) | ||
|
||
#### Xoá Security Group | ||
|
||
- Tìm kiếm và chọn **VPC**. | ||
|
||
![9.8](/images/9-clean-up/9.8.png) | ||
|
||
Tại bảng bên trái: | ||
|
||
- Chọn **Security Groups**. | ||
- Chọn **FCJ-Lab-sg-private**. | ||
- Nhấn **Action**. | ||
- Chọn **Delete security groups**. | ||
|
||
![9.9](/images/9-clean-up/9.9.png) | ||
|
||
Tương tự như trên: | ||
|
||
- Chọn **Security Groups**. | ||
- Chọn **FCJ-Lab-sg-public**. | ||
- Nhấn **Action**. | ||
- Chọn **Delete security groups**. | ||
|
||
![9.10](/images/9-clean-up/9.10.png) | ||
|
||
#### Xoá Role | ||
|
||
- Tìm và chọn **IAM**. | ||
|
||
![9.11](/images/9-clean-up/9.11.png) | ||
|
||
Tại bảng bên trái: | ||
|
||
- Chọn **Role**. | ||
- Tìm kiếm **customRWECRRole**. | ||
- Chọn role đã tạo. | ||
- Nhấn **Delete**. | ||
|
||
![9.12](/images/9-clean-up/9.12.png) | ||
|
||
- Nhập `customRWECRRole`. | ||
- Nhấn **Delete**. | ||
|
||
![9.13](/images/9-clean-up/9.13.png) | ||
|
||
#### Dọn Dẹp VPC | ||
|
||
- Tìm kiếm và chọn **VPC**. | ||
- Chọn **VPC-Lab-vpc**. | ||
- Nhấn **Action**. | ||
- Chọn **Delete VPC**. | ||
|
||
![9.14](/images/9-clean-up/9.14.png) | ||
|
||
#### Dọn Dẹp RDS | ||
|
||
Ở giao diện AWS console | ||
|
||
- Tìm kiếm và chọn **RDS** | ||
|
||
![9.15](/images/9-clean-up/9.15.png) | ||
|
||
- Chọn **Database** | ||
- Chọn vào RDS instance mà chúng ta đã tạo | ||
- Chọn **Action** | ||
- Chọn **Delete** | ||
|
||
![9.16](/images/9-clean-up/9.16.png) | ||
|
||
- Chọn **I acknowledge that upon instance deletion, automated backups, including system snapshots and point-in-time recovery, will no longer be available.** | ||
- Nhập `delete me` | ||
- Chọn **Delete** | ||
|
||
![9.17](/images/9-clean-up/9.17.png) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.