Tạo Role cho Lambda

Tạo Role cho Lambda Function

  1. Truy cập giao diện AWS Management Console
  • Tìm IAM
  • Chọn IAM

Createroleforlambdafunction

  1. Trong giao diện IAM
  • Chọn Roles
  • Chọn Create role

Createroleforlambdafunction

  1. Trong giao diện Select trusted entity
  • Chọn AWS service
  • Chọn Lambda
  • Chọn Next

Createroleforlambdafunction

  1. Trong giao diện Add permissions
  • Tìm AmazonEC2FullAccess
  • Chọn AmazonEC2FullAccess

Createroleforlambdafunction

  1. Tiếp theo, tương tự bước trên
  • Tìm CloudWatchFullAccess
  • Chọn CloudWatchFullAccess
  • Chọn Next

Createroleforlambdafunction

  1. Trong phần Name, review, and create
  • **Nhập dc-common-lambda-role cho Role name

Createroleforlambdafunction

  1. Kiểm tra lại và chọn Create role

Createroleforlambdafunction

  1. Hoàn thành tạo role cho Lamda Function

Createroleforlambdafunction