Dedicated Cloud Gateway configuration

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 find your account ID and network ID in Konnect by navigating to your Data Plane and Networks in Gateway Manager.

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

Something wrong?

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!