Skip to content

rbrayner/localstack-samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Localstack Samples

1. Introduction

This repository helps developers to run simple localstack examples. The examples were tested on a MacOS Monterey ARM64 (M1) processor. The full documentation can be found here.

2. Requirements

3. Supported AWS resources examples (until now)

  • Lambda
  • S3

4. Example-01

This example creates an S3 bucket (named mybucket), and a node lambda function (named example) that puts an object (file.txt) into that bucket with some content.

4.1. Step 1

Edit the .env file and change the IP address to any IP of the HOST that is running the localstack (usually your laptop's IP address, such as 192.168.0.10, for example). Do not use 127.0.0.1.

4.2. Step 2

If you have no ~/.aws/credentials configured, please create one with fake access and secret keys.

4.3. Step 3

Run the following command:

make example-01

4.4. Step 4

Run the following command to list all available options:

make help

5. Destroying

To destroy localstack with all the created AWS resources, run the below command. Since we are not creating a localstack docker volume, to persist data, EVERYTHING will be lost.

make destroy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published