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?
Asked
Active
Viewed 989 times
1 Answers
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
-
1thanks very much. iI use this one AmazonSimpleNotificationServiceClient (string awsAccessKeyId, string awsSecretAccessKey,RegionEndpoint). – Lawrence song Nov 21 '17 at 00:51
-
makes sense, let me know if you run into any issues there – Chris Anderson Nov 21 '17 at 00:59
-
i want to assembly #r "AWSSDK.SimpleNotificationService" in azure functions. However i got error CS0006: Metadata file 'AWSSDK.SimpleNotificationService' could not be found – Lawrence song Nov 21 '17 at 01:19
-
@Lawrencesong please mark this as the answer if it helped. Thanks! – Fabio Cavalcante Nov 21 '17 at 01:19
-
@Lawrencesong - you need to make sure you add that via your package.json first. Open a new question if you need more assistance on loading that package (but I'd encourage you to google it first since we have good docs on it) – Chris Anderson Nov 21 '17 at 01:31
-
@ChrisAnderson-MSFT Thanks. I found the way to add the reference – Lawrence song Nov 21 '17 at 02:29