1

In azure, we have service bus topics and azure functions listen to this topic. If there is any data into this topic, function will be triggered. I want to send the data to AWS topic. AWS has C# SDK, but we need to setup appconfig. How can we set appconfig in Azure function, or there is another way to do this?

John Rotenstein
  • 241,921
  • 22
  • 380
  • 470
Lawrence song
  • 158
  • 1
  • 15

1 Answers1

2

I'd use the AmazonSimpleNotificationServiceClient (string awsAccessKeyId, string awsSecretAccessKey) constructor option and store the key and secret as App Settings (or if you want, use Key Vault). You don't need to use app.config to store secrets (and you should generally avoid it! Checking in secrets is a bad thing)

Chris Anderson
  • 8,305
  • 2
  • 29
  • 37