From the course: DevOps with AWS: Tools for Automated Workflows
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
CodeDeploy: Lambda - Amazon Web Services (AWS) Tutorial
From the course: DevOps with AWS: Tools for Automated Workflows
CodeDeploy: Lambda
- [Instructor] So now, let's do a deep dive into the Lambda deployments for CodeDeploy. So idea is that you create a new Lambda version, and then you want to deploy it onto an alias. So for this, right now, the alias is pointing to the Version 1, but we wanted to point to Version 2, so we are going to specify a new version information in appspec.yml file, and then this file is going to be placed in an S3 bucket. Then we are going to invoke the CodeDeploy service with this appspec.yml file. And then CodeDeploy is automatically going to update the Lambda alias to reference to the new version that is Version 2, and then automatically, traffic is going to be shifted from Version 1 to 2, and everything will be updated. So as you can see in this example, the CodeDeploy agent is not required. We just need to create the new version ahead of time and create this appspec.yml file. Now, if you look at the content of it, it is actually extremely simple. We just specify the name of the Lambda…