Skip to content

Instantly share code, notes, and snippets.

@arifsuhan
Last active July 10, 2022 20:30
Show Gist options
  • Save arifsuhan/bdd49de14efe8b6fb327c390af2cca5a to your computer and use it in GitHub Desktop.
Save arifsuhan/bdd49de14efe8b6fb327c390af2cca5a to your computer and use it in GitHub Desktop.
Localstack 101

1. Localstack

Install Localstack

pip install localstack

Start Localstack

localstack start

Reference:

  1. Local Development with AWS on LocalStack

2. AWS CLI

curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
pip install awscli-local

Reference:

  1. Installing AWS CLI

3. AWS Configuration

Check Configuration and set it

aws configure list
aws configure

Check below files

cat ~/.aws/config
cat ~/.aws/credentials

3. Dynamodb

Dynamodb GUI

npm install -g dynamodb-admin
docker pull amazon/dynamodb-local
docker run -p 8000:8000 amazon/dynamodb-local
DYNAMO_ENDPOINT=http://localhost:4566 AWS_REGION=us-east-1 AWS_ACCESS_KEY_ID=test AWS_SECRET_ACCESS_KEY=test dynamodb-admin

To view Dynamodb GUI, go to localhost:8001

Reference:

  1. A GUI for Local DynamoDB

Linux localstack not found issue

export PATH="$HOME/.local/bin:$PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment