Questions tagged [localstack]

For programming questions related to the LocalStack, which is a local AWS cloud stack formerly owned by Atlassian.

LocalStack provides an easy-to-use test/mocking framework for developing Cloud applications.

Currently, the focus is primarily on supporting the AWS cloud stack.

LocalStack was formerly owned by Atlassian, but is now its own, standalone project.

The project is open source. Its code repository can be found at https://github.com/localstack/localstack.

490 questions
72
votes
5 answers

Auto create S3 Buckets on localstack

Using localstack in my docker-compose mainly to mimic S3. I know I can create buckets, that's not the issue. What I would like to do is automatically create the buckets when I run a docker-compose up. Is there something built in already for…
ThomasVdBerge
  • 7,483
  • 4
  • 44
  • 62
35
votes
2 answers

Local cloud stack for Azure similar to LocalStack for AWS?

Is there a mocking framework for Azure similar to LocalStack for AWS? Please understand that I am not looking for a SDK mock but a resource stack mock. So much so, that I could replace the configurations of my local Azure stack with actual Azure…
Rajan Prasad
  • 1,582
  • 1
  • 16
  • 33
28
votes
6 answers

Is there a way to see files stored in localstack's mocked S3 environment

I've setup a localstack install based off the article How to fake AWS locally with LocalStack. I've tested copying a file up to the mocked S3 service and it works great. I started looking for the test file I uploaded. I see there's an encoded…
Alan W. Smith
  • 24,647
  • 4
  • 70
  • 96
18
votes
2 answers

Running shell script against Localstack in docker container

I've been using localstack to develop a service against locally. I've just been running their docker image via docker run --rm -p 4567-4583:4567-4583 -p 8080:8080 localstack/localstack And then I manually run a small script to set up my S3 buckets,…
rschlachter
  • 720
  • 1
  • 9
  • 20
16
votes
2 answers

Exactly which path do I cURL for LocalStack API Gateway Lambda integration?

LocalStack is neat, but it's hard to find documentation for it. I'm having trouble hitting my API Gateway proxy endpoint that's connected to a Lambda function. The only things I can think of is when I did the put-integration for the gateway, I…
Aaron
  • 2,154
  • 5
  • 29
  • 42
16
votes
2 answers

How to integrate terraform with atlassian/localstack?

Terraform can be configured with custom S3 endpoints and it seems that localstack can create local stacks for S3, SES, Cloudformation and few others services. The question is what to write in Terraform configuration to use localstack's S3 endpoint?
cphoover
  • 368
  • 3
  • 7
13
votes
1 answer

JUnit AWSCredentials NoClassDefFoundError with LocalStackContainer

I am getting the following exception when trying to instantiate the LocalstackContainer.I do have this class available and was able to find the source code as well in my local. I am not able to find the root cause. I am using windows os with java…
mark
  • 407
  • 7
  • 23
10
votes
1 answer

How to run AWS Lambda dotnet on localstack

The DotNet3.1 AWS Lambda I have created an AWS Lambda solution with C# DotNet3.1 using the Amazon template dotnet new serverless.AspNetCoreWebAPI -n MyDotNet.Lambda.Service this creates a lambda function whose handler is…
diegosasw
  • 13,734
  • 16
  • 95
  • 159
10
votes
3 answers

Getting "Could not connect to the endpoint URL" Error with boto3 when deploying in Localstack

I am using Localstack to test my changes in local. My lambda function is supposed to perform putObject and create object in the s3 bucket. The functionality works fine when directly tested with AWS environment. But in Localstack, its not working. I…
Bala
  • 1,077
  • 5
  • 15
  • 35
10
votes
1 answer

Debugging a Node lambda in Localstack

https://github.com/localstack/localstack Would like to be able to get step debugging working from my IDE on a node lambda running in localstack. There seems to be support for JVM debugging via LAMBDA_JAVA_OPTS but can't see anything for Node. How…
jax
  • 37,735
  • 57
  • 182
  • 278
10
votes
3 answers

AWS SAM Local vs Localstack

I've seen that AWS published recently AWS SAM Local for serverless applications. I find LocalStack to be very similar, I use it for running tests at the moment and can't see lot's of differences as they both support pretty much the same services.…
yyunikov
  • 5,719
  • 2
  • 43
  • 78
9
votes
1 answer

Localstack throws The security token included in the request is invalid

I use Localstack with Testcontainers((testcontainers:localstack:1.15.2 )) for integration tests and set up the secret in the test setup like this: Code sample import com.amazonaws.services.secretsmanager.AWSSecretsManager; import…
9
votes
1 answer

Localstack: which port to use for ES rest api

I am using docker to run Localstack and image 0.11.1. I turned on es service and exposed port 4566 - as according to the doc (https://github.com/localstack/localstack): Starting with version 0.11.0, all APIs are exposed via a single edge service,…
Ant-nrd
  • 186
  • 2
  • 6
9
votes
2 answers

Configure java AWS sdk client to write to local S3 bucket (localstack)

So i am able to configure a local s3 bucket using localstack with the following command aws --endpoint-url=http://localhost:4572 s3 mb s3://mytestbucket How am I able to change the configuration for the java AWS SDK in order to write/read from/to…
L-Samuels
  • 2,712
  • 9
  • 34
  • 42
8
votes
3 answers

How to deploy SAM stack with localstack?

I've written a SAM stack and I can build, package and deploy it on AWS. I can also use start-local or invoke to test. Now I need to test to other AWS resources. I've added those resources to my SAM template. It works well on AWS but I'm searching…
mealesbia
  • 845
  • 2
  • 12
  • 28
1
2 3
32 33