Skip to content

Try to retrieve secure string from parameter store #144

Answered by ashishdhingra
jurado75 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @jurado75,

Good afternoon.

I'm unsure what you are doing wrong, unfortunately, I'm unable to reproduce the issue.

Reproduction Steps:

  • Created parameter /myapplication/ConnectionStrings/DefaultConnection of Type SecureString and value Server=myServerName\myInstanceName;Database=myDataBase;User Id=myUsername;Password=myPassword;. The parameter is secured using KMS Key ID value alias/aws/ssm (default for current AWS account).
  • Created ASP.NET Core Web application targeting .NET 6.0.
    • Added reference to NuGet package Amazon.Extensions.Configuration.SystemsManager version 5.0.2.
    • Modified Program.cs to add below line before var app = builder.Build():
builder.Configuration.AddSystemsManager(

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by jurado75
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ashishdhingra
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. module/sys-mgr-ext
3 participants