Q:

azure functions send data to AWS topic SNS

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?

A:

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)

