I am trying to achieve some automation using AWS CLI,
wherein I am able to update my AWS Lambda function using cli command -
aws lambda update-function-code --function-name --zip-file
And add a version to the layer using the command -
aws lambda publish-layer-version --layer-name wor --compatible-runtimes nodejs8.10 --zip-file
What I want to achieve is, Link the lastest version of a particular Layer to the Function,
Something like -
aws lambda get-layer-version --layer-name some_name_here --version-number $LATEST
How can I do so?