Using AWS Signer for Lambda Code and Container Images

Using AWS Signer for Lambda Code and Container Images
Using AWS Signer for Lambda Code and Container Images

CLOUD LABS



Using AWS Signer for Lambda Code and Container Images

In this Cloud Lab, you’ll learn how to secure your Lambda code and ECR container images using AWS Signer.

10 Tasks

intermediate

2hr

Certificate of Completion

Desktop OnlyDevice is not compatible.
No Setup Required
Amazon Web Services

Learning Objectives

Hands-on experience creating signer profiles in AWS Signer
Working knowledge of signed Lambda functions in AWS Lambda
Working knowledge of signed container images in ECR repository
The ability to sign Docker container images with EC2 instances
Hands-on experience signing Lambda functions and ECR container images

Technologies
Signer
Lambda logoLambda
ECR logoECR
EC2 logoEC2
S3 logoS3
Cloud Lab Overview

AWS Signer is a fully managed service that helps you securely sign code, containers, and other files to ensure integrity and authenticity. It integrates with AWS services like Lambda and ECR, verifying that only trusted code and container images are deployed in the environment. AWS Signer supports compliance by allowing organizations to digitally sign artifacts using cryptographic keys.

In this Cloud Lab, you’ll create an S3 bucket and add a deployment package for the Lambda function. After that, you’ll create signer profiles in AWS Signer and sign the deployment package in the S3 bucket with them. Next, you’ll create a code signing configuration in AWS Lambda that will only allow the deployment of a package signed by a specific signer profile. You’ll also test the functionality of AWS Signer by attempting to create a Lambda function with deployment files signed by a different signer profile.

After creating a signed Lambda function, you’ll create an ECR repository and an EC2 instance. Using the EC2 instance, you’ll build a Docker container image, push it to the ECR repository, and sign it with a signer profile. After signing, you’ll tamper with the Dockerfile and observe if it impacts the signature or the integrity of the container image in the ECR repository.

After the completion of this Cloud Lab, the provisioned architecture will be similar to the following:

Signing AWS Lambda function and ECR container image with AWS Signer
Signing AWS Lambda function and ECR container image with AWS Signer

Cloud Lab Tasks
1.Introduction
Getting Started
2.Signing AWS Lambda Code
Create an S3 Bucket
Create an AWS Signer Profile
Create the Code Signing Configurations
Create the Signed AWS Lambda Function
3.Signing Container Images
Create an ECR Repository and Launch an EC2 Instance
Sign a Docker Image in Amazon ECR with AWS Signer
Inspect the Signature of a Tampered Container Image in Amazon ECR
4.Conclusion
Clean Up
Wrap Up
Labs Rules Apply
Stay within resource usage requirements.
Do not engage in cryptocurrency mining.
Do not engage in or encourage activity that is illegal.

Before you start...

Try these optional labs before starting this lab.

Relevant Courses

Use the following content to review prerequisites or explore specific concepts in detail.

Trusted by 1.4 million developers working at companies including

Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg
Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

Get access to Educative Cloud Labs

Course Footer Image
Course Footer Image