Easy way to add a layer in AWS Lambda
<p><strong>AWS Lambda</strong> is a powerful tool for running code in the cloud without the need for infrastructure management. It interacts perfectly with other AWS cloud services, however, to make your function more scalable and manageable, sometimes you need to add additional libraries or dependencies. AWS provides a convenient function for this — <strong>Lambda Layers</strong>.<br />
This is not the first article on this topic on the Internet, but having such a set-up as: <strong>windows</strong>, <strong>python </strong>and <strong>jupyter notebook</strong>, I had to tinker a little before writing a small script that will help easily and painlessly add the desired library to the lambda function.</p>
<p>We will need <strong>AWS_ACCESS_KEY_ID </strong>and <strong>AWS_SECRET_ACCESS_KEY</strong>. If they are not at hand, then you ask the administrator of your account to send them, and if you are the administrator, then in the AWS console we go to <strong>IAM</strong>-> <strong>Users</strong>, click on your <strong>username</strong>, go to the <strong>Security credentials</strong> tab and click <strong>Create access keys</strong> in the <strong>Access keys</strong> section. Saving our AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.</p>
<p><a href="https://awstip.com/easy-way-to-add-a-layer-in-aws-lambda-2bc2c4f08295"><strong>Click Here</strong></a></p>