-
Notifications
You must be signed in to change notification settings - Fork 0
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
Added resolve_customer lambda handler #3
Conversation
ok problem with this code is that I implemented it according to the AWS documentation. I was not able to test this code for real because that requires me to have a proper x-amzn-marketplace-token which I don't have and which is the result of a click on the subscription vendor button. |
5f87a55
to
b5b0258
Compare
It's expected that the resolve_customer lambda is triggered by an AWS API Gateway. This information should be added to the code and the code also needs to change because the event structure is not correctly read by the PR for this trigger mechanics. Here is an example event source
|
919243f
to
c0cafa1
Compare
885ef74
to
65b623a
Compare
The resolve_customer handler expects an event providing the x-amzn-marketplace-token. It will then resolve customer information from the metering marketplace as well as the entitlements for this customer's ID and product code. The input and return API is documented in the header of the lambda_handler entrypoint and follows the AWS API Gateway specifications.
933764c
to
785fb8e
Compare
Add resolve_customer.py as callable entry point for the lambda Also fix spec file errors for requirements and a mistake on the %description field
803a3fa
to
c72f04a
Compare
The resolve_customer handler expects an event providing the x-amzn-marketplace-token. It will then resolve customer information from the metering marketplace as well as the entitlements for this customer's ID and product code. The return type API is documented in the header of the lambda_handler entrypoint