-
|
I have a .NET application that uses SNS, SQS and SecretsManager. I also run my VisualStudio with profile And I actually do use localstack. With SNS, SQS, SecretsManager enabled. Now I have added NLog with The other profile is pointing to actual AWS account with CloudWatch in it. Now this does not work :) If i would change env variables to: Then logging works. But now everything is in the same account. I am suspecting that somehow AWSTarget when authenticating is using the service url of the localstack - but that is only suspicion. But when I add serviceUrl to target: I'm no longer getting error, but I'm also not getting logs :D and use serviceUrl like above - I'm also not getting logs. Please help - how can I make this work? Reference that I have already seen: https://stackoverflow.com/questions/48899053/using-multiple-awsprofilenames-simultaneously-in-your-net-application |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
I managed to solve my own issue :) Most important part - I have removed from I have added in For the SNS, SQS and Secrets I'm now using code like this: and for the NLog now the standard configuration works. And it works. |
Beta Was this translation helpful? Give feedback.
I managed to solve my own issue :)
Most important part - I have removed from
environmaneVariablestheAWS_PROFILE.I have added in
appsettings.json:For the SNS, SQS and Secrets I'm now using code like this:
and for the NLog now the standard configuration works.
I have it now in code:
An…