Configuring permissions for the life cycle hook Lambda function