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:
- Log in to your account, and go to the Lambda console.
- Click Create function, and choose the Author from scratch.
- Give your function a unique, descriptive name.
- Choose Node.js 8.10 as the Runtime:
- 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.
- Click ...