Skip to content

Commit 45f081f

Browse files
committed
Update
1 parent 4fa89d8 commit 45f081f

File tree

4 files changed

+25
-14
lines changed

4 files changed

+25
-14
lines changed

0_Prerequisities/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AWS Cloud9 - Cloud IDE
22

3-
Login to AWS Console, go to *Ireland(eu-west-1) Region* and spin up a AWS Cloud9 environment. Please use Firefox or Chrome to open AWS Cloud9. If you don't have a VPC including **the default VPC**, you cannot deploy the Cloud9. Please create a default VPC first first before launching the Cloud9.
3+
Login to AWS Console, go to *Ireland(eu-west-1)* region and spin up a AWS Cloud9 environment. Please use Firefox or Chrome to open AWS Cloud9. If you don't have a VPC including **the default VPC**, you cannot deploy the Cloud9. Please create a default VPC first first before launching the Cloud9.
44

55
<details><summary>Create a default VPC for Cloud9</summary>
66

@@ -10,7 +10,7 @@ Go to [VPC console in Ireland](https://eu-west-1.console.aws.amazon.com/vpc/home
1010

1111
</details>
1212

13-
https://eu-west-1.console.aws.amazon.com/cloud9/home?region=eu-west-1
13+
If you have a VPC, go to [Cloud9](https://eu-west-1.console.aws.amazon.com/cloud9/home?region=eu-west-1 ) in Irelad.
1414

1515
![AWS Ireland](../images/00-c9-00.png)
1616

@@ -24,6 +24,7 @@ AWS Cloud9 is free, you only pay for the underlying EC2 instance. Select your EC
2424
![Create AWS Cloud9](../images/00-c9-03.png)
2525

2626
Click "Next Step", click "Create environment" and AWS Cloud9 will start! It would typically take 30-60s to create your AWS Cloud9 environment.
27+
2728
![Create AWS Cloud9](../images/00-c9-04.png)
2829

2930
## Clone the workshop project

1_PrimaryRegion/README.md

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
In this module, you will deploy the Bookstore application and Wordpress blog in the primary (Ireland, eu-west-1) region using AWS CDK(Cloud Development Kit) and AWS CloudFormation. The solution uses the following components:
44

5-
1. Fargate and Aurora - Book blog posts with Wordpress (AWS Fargate is a compute engine for Amazon ECS and EKS that allows you to run containers without having to manage servers or clusters)
6-
2. CloudFront and S3 - Web static content, ReactJS files
7-
3. API Gateway, AWS Lambda and Cognito - App layer with authentication
8-
4. DynamoDB and ElastiCache - Books, Order, Cart tables and Best Seller information
5+
1. Module 1-1.
6+
* Fargate and Aurora - Book blog posts with Wordpress (AWS Fargate is a compute engine for Amazon ECS and EKS that allows you to run containers without having to manage servers or clusters)
7+
2. Module 1-2.
8+
* CloudFront and S3 - Web static content, ReactJS files
9+
* API Gateway, AWS Lambda and Cognito - App layer with authentication
10+
* DynamoDB and ElastiCache - Books, Order, Cart tables and Best Seller information
911

1012
You will also create the IAM polices and roles required by these components.
1113

@@ -44,22 +46,30 @@ Type "Y", and it will take around 5 min.
4446

4547
- You need `hostedZone.hostedZoneID` information in the module 2.
4648

47-
Now, let's check if the DNS is setup correctly in Route53. Open a new Terminal or iTerm and enter the following command to make sure you see that the DNS is resolving to the correct addresses.
49+
Now, let's check if the DNS is setup correctly in Route53. Enter the following command to make sure you see that the DNS is resolving to the correct addresses.
4850

4951
```
5052
dig +short NS <<YOUR HOSTED NAME URL>> e.g. myUniqueTeamName.multi-region.xyz
5153
```
52-
Now, compare the results with the ones in Route53. If they are the same, you can proceed to deploy the Wordpress. If not, please wait another 1 min before you seek help from the AWS instructors.
54+
Now, compare the results with the ones in output of CDK. If they are the same, you can proceed to deploy the Wordpress with the following command.
5355

54-
![Compare Route53 namespace](../images/01-r53-01.png)
56+
<!-- ![Compare Route53 namespace](../images/01-r53-01.png) -->
5557

5658
```
5759
npx [email protected] deploy Wordpress-Primary
5860
5961
Do you wish to deploy these changes (y/n)?
6062
```
6163

62-
Enter "**Y**", and it will take around 20 min.
64+
Enter "**Y**", and it will take around 20 min.
65+
66+
FYI.
67+
68+
69+
70+
71+
72+
export MYSUBDOMAIN=<enter a 8 char unique subdomain name, eg: team1234>
6373

6474
**Your Book Blog is completed**
6575

4_TestingFailover/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@ failure.
2828
Since your DNS records are configured to use this health check, Route53 should
2929
automatically use this information to point your application to the second region (Singapore).
3030

31-
You can validate this failover scenario when you visit `https://api-ir.<your subdomain>.multi-region.xyz/books` with `{"message":"Forbidden"}` error. However, you will get the book list when you visit `https://api.<your subdomain>.multi-region.xyz/books` as the Singapore region API is working properly (same as `https://api-sg.<your subdomain>.multi-region.xyz/books`.
31+
You can validate this failover scenario when you visit `https://api-ir.<MYSUBDOMAIN>.multi-region.xyz/books` with `{"message":"Forbidden"}` error. However, you will get the book list when you visit `https://api.<MYSUBDOMAIN>.multi-region.xyz/books` as the Singapore region API is working properly (same as `https://api-sg.<MYSUBDOMAIN>.multi-region.xyz/books`.
3232

3333
The web application UI should also continue to
3434
function and you should still be able to view and order books.
3535

36-
To confirm everything went as expected, go to your Bookstore application (`https://<your subdomain>.multi-region.xyz/books`)
36+
To confirm everything went as expected, go to your Bookstore application (`https://MYSUBDOMAIN>.multi-region.xyz/books`)
3737
and order a book again. You should see your application indicates Singapore region. (**Singapore flag icon at top left hand corner**). In Singapore's DynamoDB console, you will also see that the `Orders` table has a new record.
3838

3939
<details><summary>Troubleshooting Common Issues</summary>
4040
It is possible that your Operating system AND browser are caching the old DNS entries, hence your failover will have problem (eg: `403 error` in your browser as you purchase books.).
4141
To fix this:
4242

43-
* clear your dns entries in your OS, then verify how your OS is resolving your api endpoint, (eg: `host api.<your subdomain>.multi-region.xyz`). You can tell from the CNAME resolution which AWS region is being called.
43+
* clear your dns entries in your OS, then verify how your OS is resolving your api endpoint, (eg: `host api.<MYSUBDOMAIN>.multi-region.xyz`). You can tell from the CNAME resolution which AWS region is being called.
4444
* restart your browser or use another browser
4545

4646
</details>

5_Cleanup/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The CloudFront origin access identity is still being used, hence, we need to del
88
Go to `CloudFront` and select your `CloudFront Distribution`. Go to `Origins and Origin Groups` and delete the `Origin Group` and `Orgin` that you created.
99

1010
## 2. Delete API Gateway
11-
Go to `Custom Domain Names` in `API Gateway` in `Singapore` and select your `*.<your subdomain>.multi-region.xyz` domain name. Click `x` button to delete it.
11+
Go to `Custom Domain Names` in `API Gateway` in `Singapore` and select your `*.<MYSUBDOMAIN>.multi-region.xyz` domain name. Click `x` button to delete it.
1212

1313
## 3. Delete Aurora Read Replicas
1414
You created the Aurora Read Replica in `Singapore` using CLI. Go to `RDS` console, select Read Replica Cluster `arc309-replica-cluster`, and select `Promote` in `Actions`. We need to promte the read replia as standalone to delete the instance. Then select Read Replica Instance `arc309-replica-instance` and select `Delete` in `Actions`. In the deletion window, uncheck `Create snapshot`, check `acknowledgement`, type `delete me`, and click `Delete`.

0 commit comments

Comments
 (0)