Configuration in .NET Core is quite different from what we’re used to in the .NET Framework. With the .NET Framework, we had only app.config/web.config as our configuration source and, for any other sources, we had to create our custom configuration solution.
The .NET Core configuration system was built to be extensible. For example, when you create an ASP.NET Core application, by default it pulls configuration information from your
appsettings.json file, command line arguments, and environment variables. You can also plug in other configuration source providers and then let your application access the configuration with the same interface.
AWS Systems Manager Parameter Store provides secure hierarchical storage for configuration data management and secrets management. Using AWS Systems Manager Parameter Store, you can safely store application configurations separately from your application’s code.
In this module we are going to use AWS Systems Manager Parameter Store to securely store and access connection string to the database.
You should never store connection strings in the code.