How to do it...

Let's first see how to enable tagging:

  1. If you have cloned the repository, you have to tag the instance with key as Backup and value the as Yes. Click on the Tags tab then click on Add/Edit tags:
  1. Once you click on Add/Edit Tags, you will get a small window. Click on Create Tag, then add key as Backup and value as Yes. Post that, click on Save:
  1. Similarly, apply the same tag to all the instances for which you want to schedule the AMI.

This was all about creating a tag. Now, let's discuss the steps to create a Lambda function: ...

Get AWS Automation Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.