Connect Akto with AWS AppSync using Lambda Data Source
Step 1: Deploy the Akto Data-Ingestion Service
1.1 Download the Required Files
wget https://raw.githubusercontent.com/akto-api-security/infra/refs/heads/feature/quick-setup/docker-compose-data-ingestion-runtime.yml
wget https://raw.githubusercontent.com/akto-api-security/infra/refs/heads/feature/quick-setup/data-ingestion-docker.env
wget https://raw.githubusercontent.com/akto-api-security/infra/refs/heads/feature/quick-setup/docker-mini-runtime.env
wget https://raw.githubusercontent.com/akto-api-security/infra/refs/heads/feature/quick-setup/watchtower.env
1.2 Retrieve the DATABASE_ABSTRACTOR_SERVICE_TOKEN
DATABASE_ABSTRACTOR_SERVICE_TOKEN1.3 Update the docker-mini-runtime.env File
docker-mini-runtime.env File1.4 Deploy the Data-Ingestion Service
1.5 Note the IP Address of the Data-Ingestion Service
Step 2: Setup Lambda Extension for AppSync Resolver Integration
2.1 Clone the Extension Repository
2.2 Modify the Makefile
Makefile2.3 Build the Extension
2.4 Publish as a Lambda Layer
2.5 Attach Extension Layer and Configure the Lambda Function
2.6 API Inventory with Source Location

Step 3: Add Lambda as a Data Source in AppSync
Step 4: Modify Your Resolver to Include Akto Payload
VTL (Velocity Template Language) Example (Unit Resolver)
JavaScript Resolver (Pipeline or Unit)
Step 5: Verify the Setup
Need Help?
Last updated

