The use of Lambda layers makes developers’ jobs much easier by introducing modularity across multiple Lambda functions. The creation of layers and deployment packages is very similar except on small change — the folder structure. Depending upon the runtime, this will change as listed here. Layers are added to the
/opt directory and are included in the $PATH. This means that no other edits to sys.path or environment variables are required.
Tool for parsing JSON objects from CLI
If you work with CLI tools dealing with API calls, chances are you might have been dumped with huge payload response; and want to pick selected parts of it. Enter JQ —JSON object parser CLI utility using JMESPath syntax. This is a game-changer if the API call doesn’t support native JMESPath syntax to fetch selected objects. If you use AWS CLI, I have a few examples below:
curl -s https://httpbin.org/get…