I've configured the access to azure app configuration and vault in my project, it works locally, but when I publish the aws lambda to aws cloud it doesn't access azure key values anymore.
I have configured:
_configuration = new ConfigurationBuilder()
.SetBasePath(Directory.GetCurrentDirectory())
.AddJsonFile("appsettings.json", optional: false, reloadOnChange: true)
.AddJsonFile($"appsettings.{Svc.Name}.json", optional: false)
.AddEnvironmentVariables()
.AddAzureAppConfiguration(options =>
{
options
.Connect(tempConfig["AzureAppConfiguration:ConnectionString"])
.ConfigureRefresh(options =>
{
options.Register("ConnectionString", false);
})
.ConfigureKeyVault(options =>
{
options.SetCredential(new ClientSecretCredential(
tempConfig["App:TenantId"],
tempConfig["App:ClientId"],
tempConfig["App:ClientSecret"]
));
});
})
.Build();
the values are on Json Files, lambda function is getting the right environment, my services configuration applies
serviceCollection.AddAzureAppConfiguration();
all works fine in local machine, but it triggers time out when tries to load Key values running on aws cloud.
Is there some permission/role/access I must grant in lambda's or azure's feature configuration?