How to do it...

Follow these steps in order to create a lambda function, and a macro that uses that function to transform your template, before launching the stack:

  1. Log in to your AWS account, and go to the Lambda console.
  2. Click Create function and Author from scratch.
  3. Give the function a descriptive name.
  4. Choose Python 3.6 as the Runtime.
  5. Choose to Create a Custom Role. A new screen opens, where you can create the role that will be associated with the lambda function. Give it a descriptive name:
Edit the policy document for the new Lambda execution role
  1. Click Edit to customize the policy. You need to give the lambda function permissions ...

Get AWS SysOps Cookbook - Second Edition 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.