however I can’t seem to mock it with localstack.
I followed the instructions here https://docs.localstack.cloud/user-guide/aws/cloudfront/ (I know this is not signed but this is where I got stuck) but after setting the cloudfront I get refused connection on the curl command.
Could you please give a try to a default docker-compose.yml file and see if the connection issue is still there?
Using DEBUG=1 and LS_LOG=trace should give you more details within the LocalStack logs.
version: "3.8"
services:
localstack:
container_name: "${LOCALSTACK_DOCKER_NAME-localstack_main}"
image: localstack/localstack-pro # required for Pro
ports:
- "127.0.0.1:4566:4566" # LocalStack Gateway
- "127.0.0.1:4510-4559:4510-4559" # external services port range
- "127.0.0.1:53:53" # DNS config (required for Pro)
- "127.0.0.1:53:53/udp" # DNS config (required for Pro)
- "127.0.0.1:443:443" # LocalStack HTTPS Gateway (required for Pro)
environment:
- DEBUG=1
- LS_LOG=trace
- PERSISTENCE=0
- LOCALSTACK_API_KEY=${LOCALSTACK_API_KEY-} # required for Pro
- DOCKER_HOST=unix:///var/run/docker.sock
volumes:
- "${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
thank you very much. I guess I was missing the ports from what I can see.
can you also explain how to configure URL signer since I didn’t find any documentation about this?
I do not believe that all the operations are yet to be implemented in LocalStack to make it work.
Could you please create a Feature request in this forum and share your use case with a small example?