How to do it...

Follow these steps to create a lambda function, and a custom resource that makes use of that function, in order to create an S3 bucket:

  1. Log in to your account, and go to the Lambda console.
  2. Click Create function, and choose the Author from scratch.
  3. Give your function a unique, descriptive name.
  4. Choose Node.js 8.10 as the Runtime:
The Lambda console allows you to author a function from scratch, or choose from a variety of templates
  1. Create a custom role by clicking on the IAM console link. A new screen opens, where you can create the role that will be associated with the lambda function. Give it a descriptive name.
  2. Click ...

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.