Dedicated Cloud Gateway configurationv1.0+

Set up the plugin to invoke a Lambda function with Dedicated Cloud Gateways.

Prerequisites

  • An AWS account with access to Lambda.

  • A Lambda function.

  • Configure the AWS IAM trust policy for the IAM role that is used to invoke the Lambda function. For example:

    {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Effect": "Allow",
          "Principal": {
            "AWS": "arn:aws:iam::$DCGW_ACCOUNT_ID:role/$NETWORK_ID-dataplane"
          },
          "Action": "sts:AssumeRole"
        }
      ]
    }
    

    You can locate the required IDs in the Konnect UI. Navigate to API Gateway in the Konnect menu, click a control plane, then find each ID:

    • Account ID: Find the ID in the control plane info panel.
    • Network ID: Navigate to Networks in the control plane menu.

Environment variables

  • AWS_KEY: Your AWS access key ID.

  • AWS_SECRET: Your AWS secret access key.

  • AWS_REGION: Your AWS region.

  • LAMBDA_FUNCTION: The name or ARN of the Lambda function to invoke.

  • AWS_ASSUME_ROLE_ARN: The ARN of the IAM role used to invoke Lambda function. For example, arn:aws:iam::YOUR_ACCOUNT_ID:role/YOUR_ROLE

Set up the plugin

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!