Created
November 28, 2020 02:02
-
-
Save sunilkumarmedium/530d91ec511918daff4c3f55ac75c6b5 to your computer and use it in GitHub Desktop.
SystemsManager.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Amazon.SimpleSystemsManagement; | |
using Amazon.SimpleSystemsManagement.Model; | |
var request = new GetParameterRequest() | |
{ | |
Name = "/CleanArchitectureAppWebApi/postgresconnection" | |
}; | |
using (var client = new AmazonSimpleSystemsManagementClient(Amazon.RegionEndpoint.GetBySystemName("ap-south-1"))) | |
{ | |
var response = client.GetParameterAsync(request).GetAwaiter().GetResult(); | |
connectionString = response.Parameter.Value; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment