This starts up LocalStack:
TMPDIR=/private$TMPDIR docker-compose up
(The part TMPDIR=/private$TMPDIR
is required only in MacOS.)
You can check the status of each service with the following:
curl "http://localhost:4566/health?reload"
aws --endpoint-url=http://localhost:4566 s3 ls s3://images
aws --endpoint-url=http://localhost:4566 s3api head-object --bucket images --key es/cars/image1.png
{
"LastModified": "2020-09-07T09:25:00+00:00",
"ContentLength": 1036366,
"ETag": "\"7ef5a65ab373aa5e7344a1e9867ea8f0\"",
"ContentType": "image/png",
"Metadata": {
"sourceurl": "http://example.org/assets/img/image1.png"
}
}
Thanks to Unsplash for the sample images.