User Tools

Site Tools


cloud:aws:apigateway

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
cloud:aws:apigateway [2021/04/30 19:28] skipidarcloud:aws:apigateway [2023/11/01 07:13] (current) – ↷ Page moved from business_process_management:camunda:cloud:aws:apigateway to cloud:aws:apigateway skipidar
Line 192: Line 192:
  
 This is the most powerful integration: This is the most powerful integration:
-  - **{{proxy}}** sends all resources - to the Lambda+  - **\{{proxy}}** sends all resources - to the Lambda
   - **ANY** - accepts all methods   - **ANY** - accepts all methods
  
Line 199: Line 199:
 {{https://s3.eu-central-1.amazonaws.com/alf-digital-wiki-pics/sharex/M51LDfQis7.png}} {{https://s3.eu-central-1.amazonaws.com/alf-digital-wiki-pics/sharex/M51LDfQis7.png}}
  
 +  * <color #ed1c24>Still the API must be deployed to a "stage"</color>
 +  * <color #ed1c24>Minimum one resource must be present after the stage - or you will get "{"message":"Missing Authentication Token"}"</color>
 +
 +After that the lambda reacts on
 +<code>
 +curl -X POST https://s5oi8r61hk.execute-api.eu-west-1.amazonaws.com/stage/someresourcehere/1/2/bla/blub/enigma21/
 +curl -X GET https://s5oi8r61hk.execute-api.eu-west-1.amazonaws.com/stage/2/
 +</code>
  
 ==== Mapping Templates ==== ==== Mapping Templates ====
Line 208: Line 216:
  
 https://aws.amazon.com/premiumsupport/knowledge-center/custom-headers-api-gateway-lambda/ https://aws.amazon.com/premiumsupport/knowledge-center/custom-headers-api-gateway-lambda/
 +
 +
 +
 +
 +==== Token Exchange =====
 +The token exchange is possible with 2 pieces:
 +
 +  * obtain a new token at the lambda authorizer
 +  * set the header via VLT as in 
 +
 +https://stackoverflow.com/questions/40585016/is-it-possible-to-add-an-http-header-from-aws-custom-auth-on-api-gateway
 +
 +
 +
 +===== A Detailed Overview of AWS API Gateway =====
 +An overview of the API gateway functions.
 +https://www.alexdebrie.com/posts/api-gateway-elements/
 +
 +{{https://s3.eu-central-1.amazonaws.com/alf-digital-wiki-pics/sharex/44ovAxhCbW.png}}
 +
 +{{https://s3.eu-central-1.amazonaws.com/alf-digital-wiki-pics/sharex/QuF6kGfybF.png}}
  
  
cloud/aws/apigateway.1619810912.txt.gz · Last modified: by skipidar