terraform-local icon indicating copy to clipboard operation
terraform-local copied to clipboard

Using urlparse(AWS_ENDPOINT_URL).scheme

Open pmontanari opened this issue 1 year ago • 0 comments

Hello,

In order to avoid hardcoding the Service endpoint scheme to: return f"http://{hostname}:{EDGE_PORT}"

Why not adding:

LOCALSTACK_SCHEME = urlparse(AWS_ENDPOINT_URL).scheme or "http"

and then:

return f"{LOCALSTACK_SCHEME}://{hostname}:{EDGE_PORT}"

pmontanari avatar Apr 16 '25 13:04 pmontanari