# [DevAx::academy][Module 6] for LEJU樂居
## Overview
- Short URL to this page ---> https://pse.is/4hcdtx <-----
- Full URL to this page https://hackmd.io/@t-Nm5db5SpqzWkaeZs8sqQ/ByiGE5lfi
## Survey
- Survey Link: https://survey.immersionday.com/0eXAzGV4g
## Lab ##
### Lab Document ###
- Java: https://workshops.devax.academy/monoliths-to-microservices/module6.html
### Lab Env ###
- https://dashboard.eventengine.run/login?hash=c6ab-16325d2514-9f
選擇 One-time password (OTP)

設定一個 Team Name (e.g. AWS Jack Hsu)


Login EC2
- https://workshops.devax.academy/monoliths-to-microservices-dotnet/module0/remote_environment/install_cli/provided_account.html
## Environment ##
### Windows Environment variable ###
1. Copy from dashboard
set AWS_DEFAULT_REGION=<YOUR_AWS_DEFAULT_REGION>
set AWS_ACCESS_KEY_ID=<YOUR_AWS_ACCESS_KEY_ID>
set AWS_SECRET_ACCESS_KEY=<YOUR_AWS_SECRET_ACCESS_KEY>
set AWS_SESSION_TOKEN=<YOUR_AWS_SESSION_TOKEN>
2. AWS CLI profile
aws configure set profile.aws-lab-env.region %AWS_DEFAULT_REGION%
aws configure set profile.aws-lab-env.aws_access_key_id %AWS_ACCESS_KEY_ID%
aws configure set profile.aws-lab-env.aws_secret_access_key %AWS_SECRET_ACCESS_KEY%
aws configure set profile.aws-lab-env.aws_session_token %AWS_SESSION_TOKEN%
3. Check CLI profile
aws configure get profile.aws-lab-env.region
aws configure get profile.aws-lab-env.aws_access_key_id
aws configure get profile.aws-lab-env.aws_secret_access_key
aws configure get profile.aws-lab-env.aws_session_token
## Notes ##
### Lab 6 Issues ###
Cognito public key:
https://cognito-idp.ap-northeast-1.amazonaws.com/{userPoolId}/.well-known/jwks.json
### Common
### 1.3
Step 97:
Bug fix - template.yml
Remove Line 89 => StageName: “prod”
Replace `ap-southeast-2` with `ap-northeast-1` throughout all the labs.
### 1.4
When replacing sample CodeStar project with downloaded FlightSpecials code, you can run this:
```
> cd C:\Users\Administrator\Downloads\FlightSpecials\FlightSpecials
# assume you cloned the CodeStar project at C:\Users\Administrator\git\FlightSpecialsAPI
> bash copy_files.sh ~/git/FlightSpecialsAPI/
```
### 2.2
When copying the wildcard `‘*’`, note that it is NOT single quote, and you should replace it with single quote `'*'`.