- Serverless Programming Cookbook
- Heartin Kanikathottu
- 39字
- 2025-04-04 15:02:17
Creating a role and attaching a policy
You need to create a role with a trust policy that allows our Lambda to assume the role. You also need to attach a policy that has CloudWatch permissions for logging.