Skip to content

Commit

Permalink
ELB: add alternative URL structure (#1603)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrw authored Dec 18, 2024
1 parent c9c9783 commit 92d3678
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions content/en/user-guide/aws/elb/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,27 @@ The following output will be retrieved:
}
```

#### Alternative URL structure

If a request cannot be made to a subdomain of `localhost.localstack.cloud`, an alternative URL structure is available, however it is not returned by AWS management API methods.
To make a request against an ELB with id `<elb-id>`, use the URL:

```bash
http(s)://localhost.localstack.cloud:4566/_aws/elb/<elb-id>/<elb-path>
```

Here's an example of how you would access the load balancer with a name of `example-lb` with the subdomain-based URL format:

```bash
http(s)://example-lb.elb.localhost.localstack.cloud:4566/test/path
```

With the alternative URL structure:

```bash
http(s)://localhost.localstack.cloud:4566/_aws/elb/example-lb/test/path
```

## Examples

The following code snippets and sample applications provide practical examples of how to use ELB in LocalStack for various use cases:
Expand Down

0 comments on commit 92d3678

Please sign in to comment.