AWS - Code Signer

 

AWS Lambda code signing is the practice of digitally signing source code packages for functions and layers. The goal of code signing is to ensure that only trusted code runs in your AWS Lambda functions.

AWS Signer is a fully-managed code-signing service that can be used to verify the integrity of your AWS Lambda code. Before your code is deployed, AWS Lambda will perform a series of validation checks which will determine whether to accept or reject the deployment package.

The first step in the code signing process is to define Amazon S3 source and destination buckets.

AWS Signer retrieves unsigned packages from the S3 source bucket, performs the signing job on the package, then deposits the signed package in the S3 destination bucket.

We create a S3 bucket with 2 folders. unsigned code holds normal zip files.



Creating a signing profile:


Under profile, we mention the signing platform and validity period.



Once the profile is created, "Start signing job".


Here, we mention the source bucket location where unsigned code exist and destination bucket location for storing signed code.




Now, that we have signed code. Let's try to deploy using lambda function.


Enable "AWS Signing" under Additional Configurations.



Now, our lambda function is deployed with signed code. 


When updating the lambda with unsigned code results in below error:



Comments

Popular posts from this blog

SRE/DevOps Syllabus

AWS Code Commit - CI/CD Series Part 1

Docker - Preventing IP overlapping