Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lambda plugin support IAM instance roles #5297

Closed
brycehemme opened this issue Dec 5, 2019 · 7 comments
Closed

Lambda plugin support IAM instance roles #5297

brycehemme opened this issue Dec 5, 2019 · 7 comments

Comments

@brycehemme
Copy link
Contributor

Summary

Support for IAM instance role usage in the Lambda plugin was removed in the past as is reference in here. This is a feature request to add support for this feature again which properly uses sockets for the communication with the EC2 metadata service.

@p0pr0ck5
Copy link
Contributor

p0pr0ck5 commented Dec 5, 2019

This functionality is available in the latest minor release of Kong, versions 1.4+ See the documentation at https://docs.konghq.com/hub/kong-inc/aws-lambda/. Thanks!

@p0pr0ck5 p0pr0ck5 closed this as completed Dec 5, 2019
@brycehemme
Copy link
Contributor Author

brycehemme commented Dec 5, 2019

@p0pr0ck5 do you have a reference to the code that actually makes this functional? I see nothing in the plugin code that would suggest this has been implemented plus testing of this functionality using 1.4+ does not work. I believe the docs are outdated and actually opened a PR on the docs earlier to fix this inaccuracy. I'd be happy to be proven wrong, though!

@p0pr0ck5
Copy link
Contributor

p0pr0ck5 commented Dec 5, 2019

Heya, not sure which part of the codebase you looked at, but the implementation of reaching out to the AWS ec2 metadata service is implemented here: https://github.com/Kong/kong-plugin-aws-lambda/blob/master/kong/plugins/aws-lambda/iam-ec2-credentials.lua

@p0pr0ck5
Copy link
Contributor

p0pr0ck5 commented Dec 5, 2019

The PR you’re referring to is several years old, and in that time the plugin codebase has been broken out into a separate repo (linked above). Would love to hear specific steps youve tried that failed to get the plugin working on a machine with proper IAM credentials to run a lambda plugin.

@brycehemme
Copy link
Contributor Author

brycehemme commented Dec 5, 2019 via email

@travisreed
Copy link

@p0pr0ck5 is there something that I need to do in order to enable the newer version of the plugin? I am running kong 1.4.0 and am still seeing the schema from the old codebase enforced.

I have included more detailed information and steps to reproduce here: Kong/kong-plugin-aws-lambda#17

@travisreed
Copy link

@p0pr0ck5 I learned that kong is not yet being bundled with the plugin version that reaches out to the aws metadata service. Until kong 2.0, the deployed aws-lambda plugin is the version included in this repo at: https://github.com/Kong/kong/tree/master/kong/plugins/aws-lambda

Could you point me to where to edit this documentation? https://docs.konghq.com/hub/kong-inc/aws-lambda/

More info: Kong/kong-plugin-aws-lambda#17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants