# AWS Lambda Plugin - Invocation with IAM role

**URL:** https://discuss.konghq.com/t/aws-lambda-plugin-invocation-with-iam-role/4109
**Category:** Questions
**Created:** [July 30, 2019, 7:46am UTC](https://discuss.konghq.com/t/aws-lambda-plugin-invocation-with-iam-role/4109 "2019-07-30T07:46:55Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![chandrakant\_lotke](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/chandrakant_lotke/32/884_2.png) [@chandrakant\_lotke](https://discuss.konghq.com/u/chandrakant_lotke)
#### Post date: [July 30, 2019, 7:46am UTC](https://discuss.konghq.com/t/aws-lambda-plugin-invocation-with-iam-role/4109/1 "2019-07-30T07:46:55Z")

</div>

Is there any way to invoke lambda function with assume role?  
Would like to use IAM role instead of access\_key and secret\_key.

---

<div class="post-metadata">

### Author: ![kevin.chen](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/kevin.chen/32/855_2.png) [@kevin.chen](https://discuss.konghq.com/u/kevin.chen)
#### Post date: [August 5, 2019, 4:23pm UTC](https://discuss.konghq.com/t/aws-lambda-plugin-invocation-with-iam-role/4109/2 "2019-08-05T16:23:35Z")

</div>

This guide is a little dated but step 5.2 goes over using IAM role: [https://konghq.com/blog/secure-and-manage-aws-lambda-endpoints-with-kong/](https://konghq.com/blog/secure-and-manage-aws-lambda-endpoints-with-kong/). Let me know if this works for you.

---

<div class="post-metadata">

### Author: ![chandrakant\_lotke](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/chandrakant_lotke/32/884_2.png) [@chandrakant\_lotke](https://discuss.konghq.com/u/chandrakant_lotke)
#### Post date: [August 5, 2019, 5:02pm UTC](https://discuss.konghq.com/t/aws-lambda-plugin-invocation-with-iam-role/4109/3 "2019-08-05T17:02:42Z")

</div>

Thanks for your reply.  
I have gone through this plugin, (AWS Lambda plugin) it requires AWS\_ACCESS\_KEY and AWS\_SECREAT\_KEY. It is mandatory in schema.  
Can I go with out that?

---

<div class="post-metadata">

### Author: ![dvqrbn](https://avatars.discourse-cdn.com/v4/letter/d/9fc348/32.png) [@dvqrbn](https://discuss.konghq.com/u/dvqrbn)
#### Post date: [March 4, 2025, 9:44am UTC](https://discuss.konghq.com/t/aws-lambda-plugin-invocation-with-iam-role/4109/4 "2025-03-04T09:44:05Z")

</div>

Did you solve this? I’m having the same struggle right now.
