Questions tagged [localstack]

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

Filter by
Sorted by
Tagged with
79 votes
5 answers
46k views

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. ...
ThomasVdBerge's user avatar
40 votes
6 answers
52k views

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 ...
Alan W. Smith's user avatar
39 votes
2 answers
17k views

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 ...
Rajan Prasad's user avatar
  • 1,631
20 votes
2 answers
18k views

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 ...
rschlachter's user avatar
17 votes
2 answers
10k views

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 ...
Aaron's user avatar
  • 2,245
16 votes
2 answers
4k views

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 ...
cphoover's user avatar
  • 368
14 votes
2 answers
14k views

how to keep data of localstack S3 after docker-compose down and later up

I am new with localstack I copied the docker-compose example. I made sure to mount the data path into my machine,and I do see it in host tmp folder,In addition I see my data being append when calling ...
Ehud Lev's user avatar
  • 2,701
13 votes
1 answer
5k views

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 ...
mark's user avatar
  • 407
13 votes
2 answers
19k views

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....
unknown's user avatar
  • 691
12 votes
3 answers
18k views

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 ...
Bala's user avatar
  • 1,128
12 votes
3 answers
8k views

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 ...
yyunikov's user avatar
  • 5,817
11 votes
1 answer
14k views

Automatically create SQS queue using localstack and docker-compose

Is there any way to automatically create SQS Queus using localstack with docker-compose.yml? My docker-compose.yml: version: '3.8' services: localstack: image: localstack/localstack ports: ...
placplacboom's user avatar
11 votes
2 answers
12k views

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 ...
L-Samuels's user avatar
  • 2,792
11 votes
1 answer
7k views

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 ...
diegosasw's user avatar
  • 14.8k
11 votes
1 answer
1k views

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 ...
jax's user avatar
  • 38.3k
10 votes
2 answers
6k views

Unknown host when using localstack with Spring Cloud AWS 2.3

"ResourceLoader" with AWS S3 works fine with these properties: cloud: aws: s3: endpoint: s3.amazonaws.com <-- custom endpoint added in spring cloud aws 2.3 ...
ravikant's user avatar
  • 485
9 votes
3 answers
9k views

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 ...
mealesbia's user avatar
  • 905
9 votes
1 answer
9k views

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,...
Ant-nrd's user avatar
  • 306
8 votes
3 answers
18k views

Terraform stuck on `Refreshing state...` when running against `localstack`

I am using Terraform to publish lambda to AWS. It works fine when I deploy to AWS but stuck on "Refreshing state..." when running against localstack. Below is my .tf config file as you can see I ...
Joey Yi Zhao's user avatar
  • 40.4k
8 votes
4 answers
5k views

how can we run Neptune graph database on docker

how can we run Neptune graph database on docker Since Neptune DB has been productized recently it is not available on Localstack can someone guide me how to deploy AWS Neptune DB Service into docker ...
sidhant das's user avatar
8 votes
2 answers
8k views

Google BigQuery local emulation

Is there any local server implementation for google BigQuery like localstack for AWS. There is a reference to local server implementation for app engine with dev_appserver.py. I could run this with a ...
Ambareesh B's user avatar
8 votes
1 answer
6k views

How to copy executable file to Docker container using Testcontainers

I'm trying to copy an executable initialization bash script init.sh to the Localstack Docker container created with Testcontainers (1.13.0) using the JUnit 5 module: @Container static ...
rieckpil's user avatar
  • 11.5k
8 votes
3 answers
4k views

How do I use aws-sdk-go-v2 with localstack?

I'm trying to migrate from aws-sdk-go to aws-sdk-go-v2. But, I am using localstack locally to mimic some aws services such as sqs and s3. I'm not sure how to configure the new sdk to use the ...
Freid001's user avatar
  • 2,740
8 votes
1 answer
8k views

Using boto3 through SAM local to interact with Localstack S3

I am having a strange issue trying to get boto3 in AWS SAM local to connect to localstack S3. I know this is especially strange because SQS works fine. Both localstack and AWS SAM local are being ...
Zach's user avatar
  • 4,875
7 votes
3 answers
8k views

Localstack AWS endpoint in application

I would like to run the functional tests for my application which tries to publish a message to AWS SNS. I tried LocalStack and found that it does everything I need to mock and publish messages ...
Pratik Shelar's user avatar
7 votes
1 answer
18k views

Unable to connect to a Localstack docker instance on a Windows 10 machine - Unable to locate credentials

I'm trying to experiment with Localstack on a Windows 10 machine. I wish to use the localstack/localstack docker image. I also wish to use the amazon/aws-cli docker image for running commands against ...
Pure.Krome's user avatar
  • 85.8k
7 votes
3 answers
14k views

localstack docker-compose - The AWS Access Key Id you provided does not exist in our records

Running localstack and app via docker-compose to dummy a s3 bucket, but getting the error: "msg":"Failed to upload file /test-data/test.txt: The AWS Access Key Id you provided does not ...
Staggerlee011's user avatar
7 votes
0 answers
2k views

Not able to start localstack docker on Mac

I have installed localstack in my local. Using below docker version. Docker version :- 18.09.1. Also created a tmp directory in my mac. TMPDIR=/private$TMPDIR localstack works fine without docker ...
Rakesh's user avatar
  • 177
6 votes
2 answers
25k views

Localstack - Can't access dashboard

I'm using localstack to simulate SNS and SQS but every time I try to use the dashboard I keep getting this error: 2019-08-19T09:59:58:WARNING:localstack.dashboard.infra: Error running command: { ...
Tiago Martins's user avatar
6 votes
2 answers
19k views

localstack trying to connect to localhost:4566 when we explicitly have the url set to 4576

My team is trying to get a local setup for our project. We are running the same docker-compose file with image localstack/localstack:0.8.10. We are running the same shell script. Our script looks like ...
cWerning's user avatar
  • 603
6 votes
1 answer
6k views

How do i allow my docker container to connect to local stack

OS : mac Os Big sur Hi i wanted to connect to local stack running on 4566 in test-network from another docker container also running in test-network. From inside the docker container if i run: aws --...
Daptal Ms's user avatar
  • 351
6 votes
1 answer
9k views

localstack docker gives error Permission denied: '/tmp/localstack/server.test.pem.key'

On my ubuntu 18 machine I cannot run latest docker image of localstack. Even if the end message displayed as "Ready" I still can not access it using the following command. awslocal --endpoint-url=...
user2918406's user avatar
6 votes
2 answers
7k views

Getting emails via LocalStack / AWS SES

I am trying to use LocalStack for my end to end tests but I cannot read the emails sent via LocalStack/SES. Is there a way to do that? I want my Cypress e2e tests to invoke my backend services, the ...
Zaphod Beeblebrox's user avatar
6 votes
3 answers
9k views

Docker-compose: How to access Localstack resources both from container and host, using same network address

I'm using docker-compose to run a python API and a Localstack instance in 2 separate containers, for local development. The API has an endpoint which generates a presigned AWS S3 URL and redirects the ...
lthomas123's user avatar
6 votes
0 answers
4k views

Error while creating S3 bucket using localstack

I have cloned localstack repo and exposed it with docker-compose up and I got the port 4566, as you can see the logs : localstack_main | [2021-02-26 06:30:24 +0000] [22] [INFO] Running on https://0.0....
Aadhi Verma's user avatar
5 votes
2 answers
3k views

How to spinup localstack in CI/CD

I am able to create and test AWS locally using localstack. So, I'm wondering if there are any use cases out there where I can reference how to add localstack in ci/cd and run your test cases? any ...
change198's user avatar
  • 1,925
5 votes
2 answers
2k views

localstack Kinesis does not start in docker

We're running Docker on Windows 10. We have a simple Java Springboot application, which should interact with AWS Kinesis and S3. For local testing, we want to pull the localstack Docker latest image ...
JavaTec's user avatar
  • 984
5 votes
2 answers
3k views

AWS .NET SDK How to specify region when using Localstack

How do I instantiate a .NET AWSSDK SQS client that has both a custom Region and ServiceURL? More information: I have a queue set up in localstack that I can verify is there through an sqs list-queues ...
Moffen's user avatar
  • 1,903
5 votes
1 answer
2k views

Terraform Override Provider for use with Localstack

I have a Git Repository with Terraform code that is being deployed into AWS. I am adding Localstack to this repository so that I can do higher-level validation testing before a plan and apply into my ...
user3063045's user avatar
  • 2,139
5 votes
1 answer
9k views

Serverless: Configuration error at root: unrecognized property 'stepFunctions'

I have some strange errors and I can not find out the reason, can you help me? ... Serverless: Warning: Unable to find plugin named: TypeScriptPlugin Serverless: Configuration error at root: ...
Stevan Tosic's user avatar
  • 6,899
5 votes
1 answer
4k views

Email address not verified when I try to use aws ses in localstack

I'm trying to use localstack to test a lambda that use SES to send some emails. But when I try it , I get the next error: Email address not verified Is there any way to verified this email in ...
justMiLa's user avatar
  • 151
5 votes
1 answer
8k views

How do I get my certificates to work for SSL in LocalStack

Update: I realized in my original post the certificates being referred to are for the database, not the localstack ports. I have updated the description and question, as I still cannot get the ...
Kraagenskul's user avatar
5 votes
2 answers
3k views

Using AWS SDK on .net with localstack (TransferUtility/S3 - setting endpoint)

I have localstack (https://github.com/localstack/localstack) running and am able to use the aws s3 cli to upload files to it. What I want to be able to do is use the .NET AWS ADK with localstack. I'...
Ben's user avatar
  • 1,953
5 votes
1 answer
6k views

Localstack starts in Docker, but I can't access

I run a docker compose to start an instance of localstack with the S3 service. It starts normally, but when trying to use the AWS CLI to access it I get the following error: > aws --endpoint-url=...
Fernando Bittencourt's user avatar
5 votes
2 answers
2k views

How to programmatically set up Airflow 1.10 logging with localstack s3 endpoint?

In attempt to setup airflow logging to localstack s3 buckets, for local and kubernetes dev environments, I am following the airflow documentation for logging to s3. To give a little context, ...
oasisPolo's user avatar
  • 138
5 votes
2 answers
6k views

Serverless example not working with serverless-localstack plugin

I am running an example from the official serverless GitHub page and it works well out of the box when I deploy directly on my AWS account. Now when I try to activate the serverless-localstack plugin ...
Christophe's user avatar
  • 1,962
5 votes
1 answer
556 views

How to give a permanent url to API gateway in Localstack

I'm using a localstack for local AWS development. The lambdas are exposed via API Gateway. Whenever localstack is restarted (or when it is started for the first time on another machine) I have to ...
Konstantin Bodnia's user avatar
5 votes
0 answers
428 views

Test Go Lambda locally with AWS Serverless Application Model and localstack

I am trying to test locally a lambda function that is listing buckets on a S3 bucket. To have a local S3 bucket for my test, I use localstack: docker run --rm -it -p 4566:4566 -p 4510-4559:4510-4559 ...
Jérémy's user avatar
  • 111
5 votes
1 answer
3k views

Localstack module of testcontainers is not running for integration tests

I am trying to come up with some integartion tests for a Spring boot service. Since the service is using AWS SQS and DynamoDB, I tend to take advantage of the Localstack module of testcontainers for ...
dunfa's user avatar
  • 549
5 votes
0 answers
2k views

Cannot configure to deploy serverless stack to localstack

I am using serverless for deploying AWS serverless stack. (i.e: lambda, sqs, sns). I want to run before in local before trying to deploy to AWS. I have searched and see localstack suitable for my use ...
Trần Kim Dự's user avatar

1
2 3 4 5
11