Language SDKs

How to use your favorite cloud development SDK with LocalStack.

Introduction

LocalStack integrates with official AWS Software Development Kits (SDKs) so you can connect to LocalStack services using the same SDKs you use for AWS services. This lets you develop and test your applications locally without connecting to the cloud.

How to connect with AWS SDKs?

To connect to LocalStack services using AWS SDKs, you can use one of the following methods:

  • Manual configuration: Manually configure the SDK to connect to LocalStack services by setting the endpoint URL to http://localhost:4566 or localhost.localstack.cloud:4566. This can also be specified using a profile or an environment variable.
  • Transparent endpoint injection (recommended): Connect to LocalStack services without modifying your application code. Transparent endpoint injection uses the integrated DNS server to resolve AWS API calls to target LocalStack. Refer to the Transparent Endpoint Injection guide for more information.

.NET

How to use the .NET AWS SDK with LocalStack.

C++

How to use the C++ AWS SDK with LocalStack.

Go

How to use the Go AWS SDK with LocalStack.

Java

How to use the AWS Java SDK with LocalStack.

JavaScript

How to use the JavaScript AWS SDK with LocalStack.

PHP

How to use the PHP AWS SDK with LocalStack.

Python Boto3

How to use the Boto3 Python AWS SDK with LocalStack.

Ruby

How to use the AWS SDK for Ruby with LocalStack.