Sometimes could be difficult to have all exactly same versions in all laptops. The purpose of this is to have only 1 image of docker with all software necessary, ready to be used whenever you want. In CICD or your local.
- Docker version 20.10.13
- Serverless Framework 2.38.0
- Python 3.8.10
- Node v17.7.2
- NPM 8.5.4
1º You need Docker installed in your laptop. → https://www.docker.com/get-started/
2º Access KEY + Secret KEY from AWS configured in your ~/.aws/credentials
docker build -t docker-serverless-monitoring .
docker run -it -v $HOME/.aws/credentials:/home/nroot/.aws/credentials:ro -v "$(pwd)":/home/nroot/ --name serverless-container docker-serverless-monitoring
serverless deploy --ENVIRONMENT 'PROD-INT-PRE'
If everything is working well, when you deploy serverless you will see something like this:
Apache
More info -->
https://www.serverless.com/blog/container-support-for-lambda
David Álvarez Quiroga