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:
- Log in to your AWS account, and go to the Lambda console.
- Click Create function and Author from scratch.
- Give the function a descriptive name.
- Choose Python 3.6 as the Runtime.
- 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:
- Click Edit to customize the policy. You need to give the lambda function permissions ...