- docker
- docker-compose
bring up localstack (wait for Ready to continue):
docker-compose up localstack
bash into the cdk image
docker-compose run cdk bash
execute these commands in the cdk container
cdklocal bootstrap
cdklocal deploy
note the rest api id (hashy string in the beginning of the url that was created) https://{restApiId}.execute-api.us-east-1.localhost/prod/
- See that it works
curl http://localstack:4566/restapis/{restApiId}/prod/_user_request_/
(notice that the url is localstack, replace with localhost if running from host and not container)
note: this doesn't work properly because of an issue with aws-sam-cli=1.22
ROOT=$(pwd) docker-compose up sam-ap