laveeshb / azure-function-extensions-net

Extensions for Azure Functions
MIT License
3 stars 7 forks source link

SqsQueueTrigger AWSKeyId binding from azure keyvault #58

Open kkpatel97 opened 1 year ago

kkpatel97 commented 1 year ago

Hello,

I am using nuget package manger and fetch messages from AWS message queue. I have used QueueMessageTrigger class. in the parameter binding AWSKeyId, AWSAccessKey and QueueUrl can we set value from azure keyvault? I don't want to assign value static in code.

public static void Run(
[SqsQueueTrigger( AWSKeyId = "", AWSAccessKey = "", QueueUrl = "")] Message message, ILogger log) {
log.LogInformation($"Function triggered with message Id '{message.MessageId}' body '{message.Body}' receipt handle '{message.ReceiptHandle}' MD5 '{message.MD5OfBody}' attributes count '{message.MessageAttributes.Count}'"); //write }

Any help would be appreciate.

kkpatel97 commented 1 year ago

@laveeshb, please can you help on this?

syedfarabigit commented 1 month ago

Hi There, this is exactly my question would be. I also would not put the sensitive keys in the code. Would be appreciated if you can provide some workaround or any idea on this?