laveeshb / azure-function-extensions-net

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

SQS Credentials HardCoded #47

Closed wjdavis5 closed 3 years ago

wjdavis5 commented 3 years ago

Perhaps I'm misunderstanding, but it appears that the only way to provide Aws Credentials for this trigger is to do so at compile time because they are attribute parameters. Would it be possible to instead use the IOptions instance?

wjdavis5 commented 3 years ago

I figured this out:

[SqsQueueTrigger(AWSAccessKey = "%test%",AWSKeyId = "%test%", QueueUrl = "%test%")]

And then set the value for "test" in your appsettings.