Skip to content

Latest commit

 

History

History
51 lines (42 loc) · 881 Bytes

MOCK_AWS.md

File metadata and controls

51 lines (42 loc) · 881 Bytes

AWS Mock using Localstack

From your compose stack root, preform:

docker compose up -d
docker compose ps
brew install awscli-local    (or)    pip install awscli-local
which awslocal
awslocal s3 mb s3://my-test-bucket
awslocal s3 ls
awslocal events create-event-bus --name MockBus
awslocal events list-event-buses
awslocal sqs create-queue --queue-name MockStdQueue
awslocal sqs list-queues
awslocal stepfunctions create-state-machine \
        --name "WaitMachine" \
        --definition '{
        "StartAt": "WaitExecution",
        "States": {
            "WaitExecution": {
            "Type": "Wait",
            "Seconds": 3,
            "End": true
            }
        }
        }' \
        --role-arn "arn:aws:iam::000000000000:role/stepfunctions-role"
awslocal stepfunctions list-state-machines