We want to build a lambda function which contains c# code to run some CSOM code. now when i write CSOM code inside .NET console applications i use this approach to authenticate to SharePoint online:-
static void Main(string[] args)
{
string siteUrl = "https://***.sharepoint.com/sites/CustomerServiceKB/";
string clientId = "******";
string clientSecret = "*****";
using (ClientContext context = new OfficeDevPnP.Core.AuthenticationManager().GetAppOnlyAuthenticatedContext(siteUrl, clientId, clientSecret))
{
so will this approach works inside AWS Lambda function?
Second question. per my knowledge newly created Office 365 tenants has SharePoint app-only permissions disabled.. so will my above code fail to work if the SharePoint app-only permissions is disabled?
Thanks


