Create Lambda & Invoke.
Steps to install
Configre your aws credentials. (Using Commandline)
aws configure (then Enter)
AWS Access Key ID [****************XXX]: Enter AWS Access Key ID
AWS Secret Access Key [****************XXX]: Enter AWS Secret Access Key
Default region name [us-east-1]: Enter region name
Default output format [None]: Enter
Install boto3
pip3 install boto3
Install Flask
pip3 install flask
Run project
cd aws_boto3_py
python app.py
You will get following response.
- Serving Flask app "app" (lazy loading)
- Environment: production WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
- Debug mode: on
- Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
- Restarting with stat
- Debugger is active!