This project aims to help the developers when using Localstack to manage the AWS services that are running locally.
pip install virtualenv
- Linux
python3 -m venv venv
source venv/bin/activate
- Windows:
virtualenv env
venv\Scripts\activate
pip install -r requirements.txt
Open a terminal the the root directory of the repository, then execute the docker-compose up:
cd /home/localstack-manager
docker-compose up
- Linux
pip install Flask
export FLASK_APP=aws_flask.py
export FLASK_ENV=development
flask run
- Windows:
set FLASK_APP=aws_flask.py
set FLASK_ENV=development
flask run
aws sqs create-queue --queue-name testqueue --endpoint-url=http://localhost:4576
aws sqs send-message --queue-url http://localhost:4576/queue/testqueue --endpoint-url=http://localhost:4576 --message-body 'Test Message!'
aws sqs receive-message --queue-url http://localhost:4576/queue/testqueue --endpoint-url=http://localhost:4576
1. Car queue
aws sqs create-queue --queue-name dann-car-queue --endpoint-url=http://localhost:4576
aws sqs receive-message --queue-url http://localhost:4576/queue/dann-car-queue --endpoint-url=http://localhost:4576
aws sqs send-message --queue-url http://localhost:4576/queue/dann-car-queue --endpoint-url=http://localhost:4576 --message-body '{"name" : "Fox", "brand" : "VW"}'
aws sqs send-message --queue-url http://localhost:4576/queue/dann-car-queue --endpoint-url=http://localhost:4576 --message-body "{\"name\" : \"Fox\", \"brand\" : \"VW\"}"
aws sqs send-message --queue-url http://localhost:4576/queue/dann-car-queue --endpoint-url=http://localhost:4576 --message-body "body message 1"
aws sqs purge-queue --queue-url http://localhost:4576/queue/dann-car-queue --endpoint-url=http://localhost:4576
aws --endpoint-url=http://localhost:4576 sqs receive-message --queue-url http://localhost:4576/queue/user-created-event-queue
aws sqs send-message --queue-url http://localhost:4576/queue/dann-car-queue --endpoint-url=http://localhost:4576 --message-body '{"name" : "Uno", "brand" : "Fiat"}'
aws sqs send-message --queue-url http://localhost:4576/queue/dann-car-queue --endpoint-url=http://localhost:4576 --message-body '{"name" : "Palio", "brand" : "Fiat"}'
aws sqs send-message --queue-url http://localhost:4576/queue/dann-car-queue --endpoint-url=http://localhost:4576 --message-body '{"name" : "Siena", "brand" : "Fiat"}'
==================
aws lambda create-function --function-name=f1 --runtime=python3.6 --role=r1 --handler=lambda.handler --zip-file fileb://lambda.zip --endpoint-url=http://localhost:4574
aws lambda update-function-code --function-name=f1 --zip-file fileb://lambda.zip --endpoint-url=http://localhost:4574
aws lambda invoke --function-name f1 result.log --endpoint-url=http://localhost:4574
aws lambda create-function --function-name=f1 --runtime=python3.6 --role=r1 --handler=dynamo_lambda.handler --zip-file fileb://dynamo_lambda.zip --endpoint-url=http://localhost:4574
aws lambda update-function-code --function-name=f1 --zip-file fileb://dynamo_lambda.zip --endpoint-url=http://localhost:4574
aws lambda delete-function --function-name=f1 --endpoint-url=http://localhost:4574
aws lambda invoke --function-name f1 result.log --endpoint-url=http://localhost:4574
zip dynamo_lambda.zip dynamo_lambda.py|
aws s3api create-bucket --bucket my-bucket --region us-west-2 --endpoint-url="iframe.php?url=http%3A%2F%2Flocalhost%3A4572"
aws s3 cp result.log s3://my-bucket --endpoint-url=http://localhost:4572
aws s3 cp s3_manager.py s3://my-bucket --endpoint-url=http://localhost:4572
aws s3 ls s3://my-bucket --endpoint-url=http://localhost:4572
docker run -p 8000:8000 -it --rm instructure/dynamo-local-admin
https://rmsol.de/2018/05/10/Localstack/
https://stackoverflow.com/questions/51669527/run-flask-cli-command-with-pycharm-debugger
https://stackoverflow.com/questions/52049163/run-flask-app-in-pycharm-community-windows-10