Last active
August 3, 2024 00:48
-
-
Save ValchanOficial/1bcf4aaf191d364dbc85067522aceb5b to your computer and use it in GitHub Desktop.
[WSL2 + Localstack]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> docker run --rm -it -d --name localstack -p 4566:4566 -p 4510-4559:4510-4559 localstack/localstack | |
> docker ps | |
> docker exec -it <containerId> /bin/bash | |
> aws configure | |
AWS Access Key ID [None]: example-key | |
AWS Secret Access Key [None]: example-secret-key | |
Default region name [None]: us-east-1 | |
Default output format [None]: | |
> aws s3 --endpoint-url=http://localhost:4566 mb s3://my-bucket-test | |
> aws s3 --endpoint-url=http://localhost:4566 ls | |
> curl -d 'valchan esteve aqui' -H 'Content-Type: text/plain' --location --request PUT 'http://localhost:4566/my-bucket-test/valchan.txt' | |
> curl -d '{ "message": "valchan esteve aqui" }' -H 'Content-Type: application/json' --location --request PUT 'http://localhost:4566/my-bucket-test/valchan.json' | |
> curl -s http://localhost:4566/my-bucket-test/valchan.txt | |
> curl -s http://localhost:4566/my-bucket-test/valchan.json | json_pp | |
> awslocal sqs create-queue --queue-name localstack-sqs-queue | |
> awslocal sqs list-queues | |
https://hub.docker.com/r/localstack/localstack | |
https://docs.localstack.cloud/user-guide/aws/feature-coverage/ | |
https://everything.curl.dev/index.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment