keep the bucket name for future reference
Use id as a PRIMARY KEY and type would be Number
keep the table name for future reference
Keep the SQS Name for future referencesss
Dummy payload:
{
"Customer": "Aseef Ahmed",
"OrderId": 1,
"OrderDate": "2021-09-25T23:28:15",
"OrderAmount": "200USD",
"OrderStatus": "PAID"
}
- go to the directory 'microservices/sqs_message_reader'
- Build the docker image with
sudo docker build -t IMAGE_NAME.
- Create an ECR repository (i.e. sqs_message_reader)
aws ecr create-repository --repository-name ECR_REPO
- Login to the ECR with
aws ecr get-login-password | sudo docker login --username AWS --password-stdin ACCOUNT_ID.dkr.ecr.AWS_REGION.amazonaws.com
Replace ACCOUNT_ID / AWS_REGION with your account details 5. Retag the image t with the repository URI that you just created
sudo docker tag IMAGE_NAME ACCOUNT_ID.dkr.ecr.AWS_REGION.amazonaws.com/ECR_REPO
- Push the image into your ECR repo with
sudo docker push ACCOUNT_ID.dkr.ecr.AWS_REGION.amazonaws.com/sqs_message_reader
use the image that you uploaded into ECR
- use platform version 1.3.0
Run the following script to load test. Make sure replace the variable API_URI in the script
./scripts/load-test.sh