Skip to content

LocalStack Connector

The LocalStack connector provides the same functionality as the AWS connector, but proxied to a LocalStack instance for local development and testing. All AWS tools work identically, targeting your local LocalStack environment instead of production AWS.

Authentication

The connector points to a LocalStack endpoint. Credentials can be any non-empty string since LocalStack does not validate them by default.

json
{
  "name": "LocalStack Dev",
  "source_type": "localstack",
  "config": {
    "endpoint_url": "http://localhost:4566",
    "access_key_id": "test",
    "secret_access_key": "test",
    "region": "us-east-1"
  }
}
VariableRequiredDescription
endpoint_urlYesLocalStack endpoint URL (e.g., http://localhost:4566)
access_key_idNoAWS access key ID (any value works with default LocalStack)
secret_access_keyNoAWS secret access key (any value works with default LocalStack)
regionNoAWS region (default: us-east-1)

TIP

If you run LocalStack with ENFORCE_IAM=1, you will need valid IAM credentials. Otherwise, any non-empty string works for access_key_id and secret_access_key.

Live Tools

The LocalStack connector exposes the same 8 tools as the AWS connector, all proxied to your LocalStack instance:

ToolDescriptionArguments
list_ec2_instancesList EC2 instancesfilters?, instance_ids?
describe_ec2_instanceGet details of an EC2 instanceinstance_id
list_s3_bucketsList S3 bucketsprefix?
list_s3_objectsList objects in an S3 bucketbucket, prefix?, max_keys?
list_lambda_functionsList Lambda functionsregion?
describe_lambdaGet Lambda function detailsfunction_name
list_iam_usersList IAM userspath_prefix?
list_iam_rolesList IAM rolespath_prefix?

Example: Agent Using LocalStack Tools

User: "List all S3 buckets in my local environment"

Agent: Let me check your LocalStack S3.
→ Calls list_s3_buckets()
→ Returns: "Found 3 buckets in LocalStack:
  - test-uploads (created: 2026-03-15)
  - dev-assets (created: 2026-03-10)
  - lambda-artifacts (created: 2026-03-01)"
User: "What Lambda functions are deployed locally?"

Agent: I'll check LocalStack Lambda.
→ Calls list_lambda_functions()
→ Returns: "2 Lambda functions deployed:
  - process-orders (Python 3.12, 256MB)
  - send-notifications (Node.js 20, 128MB)"

ETL Ingestion

This connector does not support ETL ingestion. Use it for live exploration and testing of local AWS resources. For graph ingestion, use the AWS connector with production credentials.

Configuration Reference

json
{
  "name": "LocalStack Dev",
  "source_type": "localstack",
  "config": {
    "endpoint_url": "http://localhost:4566",
    "access_key_id": "test",
    "secret_access_key": "test",
    "region": "us-east-1"
  }
}
FieldTypeDefaultDescription
endpoint_urlstringrequiredLocalStack endpoint URL
access_key_idstringtestAWS access key ID
secret_access_keystringtestAWS secret access key
regionstringus-east-1AWS region

Troubleshooting

ErrorCauseFix
Connection refusedLocalStack is not runningStart LocalStack with localstack start or docker compose up
Service not availableRequested AWS service not enabled in LocalStackCheck that the service is supported in your LocalStack edition (Community vs Pro)
InvalidClientTokenIdIAM enforcement is enabledSet valid credentials or disable ENFORCE_IAM in LocalStack
Resource not foundResource does not exist in the local environmentCreate the resource first using awslocal CLI or the AWS SDK
Endpoint URL mismatchWrong port or hostnameDefault LocalStack port is 4566; verify with localstack status

Built by AgentcyLabs. For in-house deployment or Agentcy Cloud (PaaS) access, visit agentcylabs.com.