Create Role for Lambda
Create Role for Lambda Function
- Access AWS Management Console

- In the IAM interface
- Select Roles
- Select Create role

- In the Select trusted entity interface
- Select AWS service
- Select Lambda
- Select Next

- In the Add permissions interface
- Find AmazonEC2FullAccess
- Select AmazonEC2FullAccess

- Next, similarly to the previous step
- Find CloudWatchFullAccess
- Select CloudWatchFullAccessV2
- Select Next

- In the Name, review, and create section
- Enter
dc-common-lambda-role for Role name

- Review and select Create role

- Successfully created the role for Lambda Function
