Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit 8402e2c

Browse files
authored
Merge pull request #199 from teknogeek0/master
Update WebApps Cleanup for new Module 6 and look and feel
2 parents 3ff951b + 31268ca commit 8402e2c

File tree

3 files changed

+84
-75
lines changed

3 files changed

+84
-75
lines changed

WebApplication/4_RESTfulAPIs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Each of the following sections provides an implementation overview and detailed,
2121
Use the Amazon API Gateway console to create a new API named `WildRydes`.
2222

2323
**:white_check_mark: Step-by-step directions**
24-
1. Go to the [Amazon API Gateway Console][api-gw]
24+
1. Go to the [Amazon API Gateway Console][api-gw-console]
2525
1. Choose **Create API**.
2626
1. Select **REST**, **New API** and enter `WildRydes` for the **API Name**.
2727
1. Select `Edge optimized` from the **Endpoint Type** dropdown.

WebApplication/6_GraphQLAPI/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -232,18 +232,18 @@ You've completed the testing of your AWS AppSync based GraphQL API!
232232
233233
:white_check_mark: After you have successfully tested your new function using the Lambda console, you can move on to the next module, [Building the History page][history-page].
234234
235+
[amplify-console-console]: https://console.aws.amazon.com/amplify/home
235236
[amplify-console]: https://aws.amazon.com/amplify/console/
236-
[appsync]: https://aws.amazon.com/appsync/
237+
[api-gw]: https://aws.amazon.com/api-gateway/
237238
[appsync-console]: https://console.aws.amazon.com/appsync/home
239+
[appsync]: https://aws.amazon.com/appsync/
238240
[cognito]: https://aws.amazon.com/cognito/
239-
[lambda]: https://aws.amazon.com/lambda/
240-
[api-gw]: https://aws.amazon.com/api-gateway/
241-
[dynamodb]: https://aws.amazon.com/dynamodb/
242-
[dynamodb-console]: https://console.aws.amazon.com/dynamodb/home
243-
[static-web-hosting]: ../1_StaticWebHosting/
244-
[user-management]: ../2_UserManagement/
245-
[restful-apis]: ../4_RESTfulAPIs/
246241
[dynamodb-console]: https://console.aws.amazon.com/dynamodb/home
242+
[dynamodb]: https://aws.amazon.com/dynamodb/
243+
[history-page]: ../7_RideHistoryPage/
247244
[iam-console]: https://console.aws.amazon.com/iam/home
248245
[lambda-console]: https://console.aws.amazon.com/lambda/home
249-
[history-page]: ../7_RideHistoryPage/
246+
[lambda]: https://aws.amazon.com/lambda/
247+
[restful-apis]: ../4_RESTfulAPIs/
248+
[static-web-hosting]: ../1_StaticWebHosting/
249+
[user-management]: ../2_UserManagement/

WebApplication/9_CleanUp/README.md

Lines changed: 74 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,24 @@ This page provides instructions for cleaning up the resources created during the
44

55
## Resource Cleanup Instructions
66

7-
### 1. Module 5 Cleanup
8-
Delete the Unicorn Manager CloudFront distribution and S3 bucket for the static website hosting created in module 5. Using the Lambda console, also delete the **ListUnicornRides** and **ListUnicornAuthorizer** functions. If you have deployed the pre-requisites CloudFormation stack, delete the stack using the CloudFormation console.
7+
### 1. Module 6 - AppSync GraphQL API Cleanup
8+
9+
<details>
10+
<summary><strong>:white_check_mark: Step-by-step directions(expand for details)</strong></summary><p>
11+
Delete the AppSync GraphQL API. From the AppSync console, select the application and click **Delete**
12+
13+
1. Go to the [AWS AppSync Console][appsync-console].
14+
1. Select the API created for this workshop.
15+
1. Select **Delete** from the top right.
16+
1. Complete the application deletion process.
17+
18+
</p></details>
19+
20+
### 2. Module 5 - OAuth Cleanup
921

1022
<details>
11-
<summary><strong>Step-by-step instructions (expand for details)</strong></summary><p>
23+
<summary><strong>:white_check_mark: Step-by-step directions(expand for details)</strong></summary><p>
24+
Delete the Unicorn Manager CloudFront distribution and S3 bucket for the static website hosting created in module 5. Using the Lambda console, also delete the **ListUnicornRides** and **ListUnicornAuthorizer** functions. If you have deployed the pre-requisites CloudFormation stack, delete the stack using the CloudFormation console.
1225

1326
1. In the AWS Management Console, click **Services** then select **CloudFront** under Networking & Content Delivery.
1427

@@ -32,118 +45,114 @@ Delete the Unicorn Manager CloudFront distribution and S3 bucket for the static
3245

3346
</p></details>
3447

35-
### 2. Module 4 Cleanup
48+
### 3. Module 4 - REST API Cleanup
3649
Delete the REST API created in module 4. There is a **Delete API** option in the **Actions** drop-down when you select your API in the Amazon API Gateway Console.
3750

38-
<details>
39-
<summary><strong>Step-by-step instructions (expand for details)</strong></summary><p>
40-
41-
1. In the AWS Management Console, click **Services** then select **API Gateway** under Application Services.
51+
**:white_check_mark: Step-by-step directions**
4252

53+
1. Go to the [Amazon API Gateway Console][api-gw-console]
4354
1. Select the API you created in module 4.
44-
4555
1. Expand the **Actions** drop-down and choose **Delete API**.
46-
4756
1. Enter the name of your API when prompted and choose **Delete API**.
4857

49-
</p></details>
50-
51-
52-
### 3. Module 3 Cleanup
58+
### 4. Module 3 - Serverless Backend Cleanup
5359
Delete the AWS Lambda function, IAM role and Amazon DynamoDB table you created in module 3.
5460

55-
<details>
56-
<summary><strong>Step-by-step instructions (expand for details)</strong></summary><p>
61+
**:white_check_mark: Step-by-step directions**
5762

5863
#### Lambda Function
5964

60-
1. In the AWS Management Console, click **Services** then select **Lambda** under Compute.
61-
65+
1. Go to the [AWS Lambda console][lambda-console]
6266
1. Select the `RequestUnicorn` function you created in module 3.
63-
6467
1. From the **Actions** drop-down, choose **Delete function**.
65-
6668
1. Choose **Delete** when prompted to confirm.
6769

6870
#### IAM Role
6971

70-
1. In the AWS Management Console, click **Services** then select **IAM** under Security, Identity & Compliance.
71-
72+
1. Go to the [AWS IAM Console][iam-console]
7273
1. Select **Roles** from the navigation menu.
73-
7474
1. Type `WildRydesLambda` into the filter box.
75-
7675
1. Select the role you created in module 3.
77-
7876
1. From the **Role actions** drop-down, select **Delete role**.
79-
8077
1. Choose **Yes, Delete** when prompted to confirm.
8178

8279
#### DynamoDB Table
8380

84-
1. In the AWS Management Console, click **Services** then select **DynamoDB** under Databases
85-
81+
1. Go to the [Amazon DynamoDB Console][dynamodb-console]
8682
1. Choose **Tables** in the navigation menu.
87-
8883
1. Choose the **Rides** table you created in module 3.
89-
9084
1. Choose **Delete table** from the **Actions** drop-down.
91-
9285
1. Leave the checkbox to **Delete all CloudWatch alarms for this table** selected and choose **Delete**.
9386

94-
</p></details>
95-
96-
### 4. Module 2 Cleanup
97-
If you used the provided AWS CloudFormation template to complete module 2, simply delete the stack using the AWS CloudFormation Console. Otherwise, delete the Amazon Cognito user pool you created in module 2.
87+
### 5. Module 2 - User Management Cleanup
88+
Delete the Amazon Cognito User Pool
9889

99-
<details>
100-
<summary><strong>Step-by-step instructions (expand for details)</strong></summary><p>
101-
102-
1. From the AWS Console click **Services** then select **Cognito** under Mobile Services.
90+
**:white_check_mark: Step-by-step directions**
10391

92+
1. Go to the [Amazon Cognito Console][cognito-console]
10493
1. Choose **Manage your User Pools**.
105-
10694
1. Select the **WildRydes** user pool you created in module 2.
107-
10895
1. Choose **Delete Pool** in the upper right corner of the page.
96+
1. Complete the application deletion process.
10997

110-
1. Type `delete` and choose **Delete Pool** when prompted to confirm.
98+
### 6. Module 1 - Web Application Cleanup
99+
Delete the AWS Amplify Console application and optionally the AWS CodeCommit or GitHub repository created:
111100

112-
</p></details>
101+
**:white_check_mark: Step-by-step directions**
113102

114-
### 5. Module 1 Cleanup
115-
If you used the provided AWS CloudFormation template to complete module 1, simply delete the stack using the AWS CloudFormation Console. Otherwise, delete the Amazon S3 bucket you created in module 1.
103+
#### For the Amplify Console web applcation:
116104

117-
<details>
118-
<summary><strong>Step-by-step instructions (expand for details)</strong></summary><p>
105+
1. Launch the [Amplify Console console page][amplify-console-console].
106+
1. Select the application you launched today.
107+
1. From **Actions** in the top right corner, select *Delete App*
108+
1. Complete the application deletion process.
119109

120-
1. In the AWS Management Console choose **Services** then select **S3** under Storage.
110+
#### For the CodeCommit repository:
121111

122-
1. Select the bucket you created in module 1.
112+
1. Open the [AWS CodeCommit console][codecommit-console]
113+
1. Select the radio button next to the repository created today.
114+
1. Select **Delete repository** from the upper right of the page.
115+
1. Complete the repository deletion process.
123116

124-
1. Choose **Delete bucket**.
125117

126-
1. Enter the name of your bucket when prompted to confirm, Then choose confirm.
118+
### 7. CloudWatch Logs Cleanup
119+
AWS Lambda automatically creates a new log group per function in Amazon CloudWatch Logs and writes logs to it when your function is invoked. You should delete the log group for the **RequestUnicorn** function.
127120

128-
</p></details>
129-
130-
131-
### 6. CloudWatch Logs
132-
AWS Lambda automatically creates a new log group per function in Amazon CloudWatch Logs and writes logs to it when your function is invoked. You should delete the log group for the **RequestUnicorn** function. Also, if you launched any CloudFormation stacks, there may be log groups associated with custom resources in those stacks that you should delete.
133-
134-
<details>
135-
<summary><strong>Step-by-step instructions (expand for details)</strong></summary><p>
121+
**:white_check_mark: Step-by-step directions**
136122

137123
1. From the AWS Console click **Services** then select **CloudWatch** under Management Tools.
138-
139124
1. Choose **Logs** in the navigation menu.
140-
141125
1. Select the **/aws/lambda/RequestUnicorn** log group. If you have many log groups in your account, you can type `/aws/lambda/RequestUnicorn` into the **Filter** text box to easily locate the log group.
142-
143126
1. Choose **Delete log group** from the **Actions** drop-down.
144-
145127
1. Choose **Yes, Delete** when prompted to confirm.
146-
147128
1. If you launched any CloudFormation templates to complete a module, repeat steps 3-5 for any log groups which begin with `/aws/lambda/wildrydes-webapp`.
148129

149-
</p></details>
130+
### 8. Cloud9 Cleanup
131+
Delete the Cloud9 Development environment created today.
132+
133+
**:white_check_mark: Step-by-step directions**
134+
135+
1. Launch the [Cloud9 console page][cloud9-console].
136+
1. Select the environment you launched today.
137+
1. From the top navigation, select **Delete**
138+
1. Complete the application deletion process.
139+
140+
141+
[amplify-console-console]: https://console.aws.amazon.com/amplify/home
142+
[amplify-console]: https://aws.amazon.com/amplify/console/
143+
[api-gw-console]: https://console.aws.amazon.com/apigateway/home
144+
[cloud9-console]: https://console.aws.amazon.com/cloud9/home
145+
[codecommit-console]: https://console.aws.amazon.com/codesuite/codecommit/repositories
146+
[codecommit-free]: https://aws.amazon.com/codecommit/pricing/
147+
[cognito-console]: https://console.aws.amazon.com/cognito/home
148+
[commit]: https://aws.amazon.com/codecommit
149+
[create-repo]: https://help.github.com/en/articles/create-a-repo
150+
[dynamodb-console]: https://console.aws.amazon.com/dynamodb/home
151+
[github-clone]: https://help.github.com/en/articles/cloning-a-repository
152+
[github]: https://github.com
153+
[github-new-sshkey]: https://help.github.com/en/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
154+
[iam-console]: https://console.aws.amazon.com/iam/home
155+
[lambda-console]: https://console.aws.amazon.com/lambda/home
156+
[region-services]: https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services/
157+
[setup]: ../0_Setup/
158+
[user-management]: ../2_UserManagement/

0 commit comments

Comments
 (0)