Using Console
Using CLI
<function_name>
with the name of the Lambda function and <statement_id>
with the statement ID of the administrative permission.Using Python
Role
attached to the function.
boto3
.
new-lambda-role
with the necessary permissions for the Lambda function to operate. It will then update the function’s execution role to the new role. Finally, it will update the new role with the necessary permissions.