Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
.ConfigureAppConfiguration((hostingContext, config) =>
var chain = new CredentialProfileStoreChain();
if (chain.TryGetAWSCredentials("PROFILE_NAME", out var profile))
config.AddSecretsManager(region: RegionEndpoint.APNortheast1, credentials: profile);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment