-
One will be the client.
-
One will be the server.
-
AWS Account
-
ECR with the images already uploaded.
-
AWS CDK boostraped (cdk bootstrap aws://ACCOUNT-NUMBER/REGION)
-
Docker installed
-
To upload the images to ECR, you can use the following commands:
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 123456789012.dkr.ecr.us-east-1.amazonaws.com
docket tag my-web-app:latest 123456789012.dkr.ecr.us-east-1.amazonaws.com/my-web-app:latest
docker push 123456789012.dkr.ecr.us-east-1.amazonaws.com/my-web-app:latest
- AWS CDK
cdk deploy InfraStack
cdk destroy InfraStack
- Server
- Client