Skip to content

Instantly share code, notes, and snippets.

@sunilkumarmedium
Created November 28, 2020 02:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sunilkumarmedium/530d91ec511918daff4c3f55ac75c6b5 to your computer and use it in GitHub Desktop.
Save sunilkumarmedium/530d91ec511918daff4c3f55ac75c6b5 to your computer and use it in GitHub Desktop.
SystemsManager.cs
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