The python sample app is used to perform E2E testing on cloudwatch, cloudwatch operator and adot repository. If any changes need to be made on the demo sample app, the following steps should be taken.
run docker-compose build
to generate two docker images: pythonsampleapp/frontend-service
and pythonsampleapp/remote-service
- Login to the testing account
- Create a new ECR repository if there's no existing one.
- Login to ECR Repository:
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin {REPOSITORY}
. - tag images and push to repository:
docker tag pythonsampleapp/frontend-service:latest ${REPOSITORY_PREFIX}/pythonsampleapp/frontend-service:latest
docker push ${REPOSITORY_PREFIX}/pythonsampleapp/frontend-service:latest
docker tag pythonsampleapp/remote-service:latest ${REPOSITORY_PREFIX}/pythonsampleapp/remote-service:latest
docker push ${REPOSITORY_PREFIX}/pythonsampleapp/remote-service:latest
- Compress the folder with:
zip -r python-sample-app.zip .
- Login to the testing account
- Create a new S3 bucket if there's no existing one.
- upload
python-sample-app.zip
to the bucket
The following are the APIs supported:
- http://${ FRONTEND_SERVICE_IP }:8000/outgoing-http-call/
- http://${ FRONTEND_SERVICE_IP }:8000/aws-sdk-call/
- http://${ FRONTEND_SERVICE_IP }:8000/remote-service?ip=${ REMOTE_SERVICE_IP }/
- http://${ FRONTEND_SERVICE_IP }:8000/client-call/
- http://${ FRONTEND_SERVICE_IP }:8000/mysql/