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

Commit 686bf1b

Browse files
committed
Refined lab instructions styling for consistency
1 parent 845eaf2 commit 686bf1b

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

Auth/0_GettingStarted/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This section outlines the prerequisites to complete the workshop and instruction
66

77
### AWS Account
88

9-
In order to complete this workshop, you'll need an AWS account and access to create and manage the AWS services that are used in this workshop, including Cloud9, Cognito, API Gateway, Lambda, DynamoDB, and IAM policies and roles.
9+
In order to complete this workshop, you'll need an AWS account and access to create and manage the AWS resources that are used in this workshop, including Cloud9, Cognito, API Gateway, Lambda, DynamoDB, and IAM policies and roles.
1010

1111
The code and instructions in this workshop assume only one participant is using a given AWS account at a time. If you attempt sharing an account with another participant, you may encounter naming conflicts for certain resources. You can work around this by using distinct Regions, but the instructions do not provide details on the changes required to make this work.
1212

@@ -54,7 +54,7 @@ Asia Pacific (Sydney) | [![Launch Cloud9 in ap-southeast-2](http://docs.aws.amaz
5454

5555
1. It will take a few minutes for the Stack to create. Choose the **Stack Info** tab to go to the overall stack status page and wait until the stack is fully launched and shows a status of *CREATE_COMPLETE*. Click the refresh icon periodically to see progress update.
5656

57-
1. With the *WildRydes-Cloud9* stack selected, click on the **Outputs** tab and copy the value shown for the `Cloud9IDE` to the clipboard. Browse to that URL in a new browswer tab to load your IDE environment.
57+
1. With the *WildRydes-Cloud9* stack selected, click on the **Outputs** tab and copy the value shown for the *Cloud9IDE* to the clipboard. Browse to that URL in a new browswer tab to load your IDE environment.
5858

5959
> Note: When you launch the stack, CloudFormation deploys a nested CloudFormation stack to launch the Cloud9 resources. You can safely ignore that template which is prefixed with "aws-cloud9-WildRydes-".
6060

Auth/1_UserAuthentication/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
In this module, you will create an Amazon Cognito User Pool and Identity Pool for the Wild Rydes application.
44
The Cognito User Pool will store user profile information and provide sign-up and sign-in capabilities, with the Cognito Identity Pool providing the ability to assume an Identity and Access Management (IAM) role from within the application.
55

6-
Since Wild Rydes is a ride sharing application, a key requirement is that all users must sign-up and sign-in before they're allowed to request a ride. You will configure the application to integrate with [Amazon Cognito](https://aws.amazon.com/cognito/) for these purposes via the [AWS Amplify JavaScript library](https://aws-amplify.github.io/).
6+
Since Wild Rydes is a ride sharing application, a key requirement is that all users must sign-up and sign-in before they're allowed to request a ride. You will configure the application to integrate with [Amazon Cognito](https://aws.amazon.com/cognito/) for these purposes via the [AWS Amplify](https://aws-amplify.github.io/) JavaScript library.
77

88
## Solution Architecture
99

@@ -202,7 +202,7 @@ You'll need to complete the implementation of the onSubmitForm and onSubmitVerif
202202
Amplify.configure(awsConfig);
203203
```
204204

205-
1. Next, we need to ensure our application evaluates the user's authenticated state. In the same `/website/src/index.js` file, find and replace the **isAuthenticated method** with the code below to use our Amplify library's built-in user session to check this status.
205+
1. Next, we need to ensure our application evaluates the user's authenticated state. In the same */website/src/index.js* file, find and replace the **isAuthenticated method** with the code below to use our Amplify library's built-in user session to check this status.
206206

207207
```
208208
const isAuthenticated = () => Amplify.Auth.user !== null;

Auth/2_ServerlessAPI/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ In the Amazon API Gateway console, create a new Cognito user pool authorizer for
133133

134134
1. In the AWS Management Console choose **Services** then select **API Gateway** under Security, Identity, and Compliance.
135135

136-
2. Choose the API named `WildRydes`.
136+
2. Choose the API named *WildRydes*.
137137

138138
3. Under your newly created API, choose **Authorizers**.
139139

Auth/3_IAMAuthorization/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ Browse to the IAM console and find your Cognito Identity Pool's authenticated us
6363

6464
1. Choose **Roles**.
6565

66-
1. Search for `WildRydes` to find the two roles which were created by Cognito Identity Pools when you created the Identity Pool in module one. Should you not be able to find the roles here, you can alternatively go to the **Cognito Federated Identities** console, find the correct identity pool, then click **Edit Identity Pool** in the top-right corner to see the roles listed. Each identity pool has both an Unauthenticated user role and an Authenticated user role.
66+
1. Search for *WildRydes* to find the two roles which were created by Cognito Identity Pools when you created the Identity Pool in module one. Should you not be able to find the roles here, you can alternatively go to the **Cognito Federated Identities** console, find the correct identity pool, then click **Edit Identity Pool** in the top-right corner to see the roles listed. Each identity pool has both an Unauthenticated user role and an Authenticated user role.
6767

68-
1. Once you have found the names of the roles, go back to the IAM console and select the `Auth` role for your authenticated users.
68+
1. Once you have found the names of the roles, go back to the IAM console and select the *Auth* role for your authenticated users.
6969

7070
1. We want to grant permissions to this role which are only applicable to this role so we will use an inline policy, which would be deleted if this role were ever deleted.
7171

@@ -144,7 +144,7 @@ Authenticate in the Wild Rydes app if you're not already logged in, then browse
144144

145145
1. After logging in to Wild Rydes (if you're not authenticated already), browse to the **/profile** path.
146146

147-
1. You should see that your e-mail address and phone number you registered with are displayed *which are all of your currently populated attributes*.
147+
1. You should see that your e-mail address and phone number you registered with are displayed which are all of your currently populated attributes.
148148

149149
1. Open your Cloud9 IDE environment and open the file at */website/src/pages/Profile.js*.
150150

@@ -169,7 +169,7 @@ Implement a method to persist the images uploaded to the current user's Cognito
169169

170170
1. The S3Image UI component has a built-in method called *onImageLoad* which provides in its invocation the full URL of any image uploaded. We will make use of this built-in function to persist our image URLs out to Cognito.
171171

172-
1. Replace the existing `onImageLoad` function with the following code:
172+
1. Replace the existing *onImageLoad* function with the following code:
173173

174174
```
175175
async onImageLoad(url) {

Auth/website/src/pages/MainApp.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,6 @@ class MainApp extends React.Component {
4343
this.setState({ idToken: session.idToken.jwtToken });
4444
}
4545

46-
/**
47-
* Calls the backend API to retrieve the Unicorn data
48-
*
49-
* @param {Number} latitude
50-
* @param {Number} longitude
51-
*/
52-
async getData(pin) {
53-
throw new Error('Request a Ride is not implemented');
54-
}
55-
5646
/**
5747
* Determines if the API is enabled
5848
*
@@ -63,6 +53,16 @@ class MainApp extends React.Component {
6353
// return (typeof api !== 'undefined');
6454
}
6555

56+
/**
57+
* Calls the backend API to retrieve the Unicorn data
58+
*
59+
* @param {Number} latitude
60+
* @param {Number} longitude
61+
*/
62+
async getData(pin) {
63+
throw new Error('Request a Ride is not implemented');
64+
}
65+
6666
/**
6767
* Called when Request Ride is called
6868
*/

0 commit comments

Comments
 (0)