Closed mashiike closed 4 years ago
This Pull Request does update AWS CLI to 1.18.9
Follow the steps below to update:
Execute the following command using the docker image of amazonlinux:2 with python3 installed.
amazonlinux:2
$ docker run -it -v ${PWD}/opt:/opt -e PYTHONUSERBASE=/opt python3-amazonlinux2 pip3 install --user awscli
Replace the following using the site-packages obtained in step 1.
check update. create lambda function with bash layer . index.sh is
function handler { set -e AWSCLI_VER=$(aws --version) echo "{\"success\": true, \"awscliVersion\": \"${AWSCLI_VER}\"}" >&2 }
before updated:
{"success": true, "awscliVersion": "aws-cli/1.16.181 Python/3.6.8 Linux/4.14.138-99.102.amzn2.x86_64 botocore/1.12.171"}
after updated:
{"success": true, "awscliVersion": "aws-cli/1.18.9 Python/3.6.8 Linux/4.14.138-99.102.amzn2.x86_64 botocore/1.15.9"}
I missed the disclaimer in "Adding New Executables" section of README.md. Create an issue. #61
This Pull Request does update AWS CLI to 1.18.9
Follow the steps below to update:
Execute the following command using the docker image of
amazonlinux:2
with python3 installed.Replace the following using the site-packages obtained in step 1.
check update. create lambda function with bash layer . index.sh is
before updated:
after updated: