Setup:
_ENDPOINT_URL=http://localhost:4566 && \
_REGION=eu-central-1 && \
_ENV=local && \
_ACCOUNT=000000000000 && \
# SQS Example
SQS_URL=${_ENDPOINT_URL}/${_ACCOUNT}/${_SQS_NAME} && \
aws sqs create-queue --endpoint-url ${_ENDPOINT_URL} --queue-name ${_SQS_NAME} --region ${_REGION} --attributes file://queue-attributes.jsonExample: queue-attributes.json
{
"RedrivePolicy": "{\"deadLetterTargetArn\":\"arn:aws:sqs:eu-central-1:000000000000:pedro-vieira-dlq-local-eu-central-1\",\"maxReceiveCount\":\"1\"}"
}Lambda Commands
aws lambda list-functions --endpoint-url http://localhost:4566 --region eu-central-1 --output json
aws lambda invoke --endpoint-url http://localhost:4566 --function-name pedro-vieira-lambda-py output.txt --region eu-central-1 --output json- AWS Command Builder: https://awsclibuilder.com/home/