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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.