Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit 92d3678

Browse files
authored
ELB: add alternative URL structure (#1603)
1 parent c9c9783 commit 92d3678

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

content/en/user-guide/aws/elb/index.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,27 @@ The following output will be retrieved:
148148
}
149149
```
150150

151+
#### Alternative URL structure
152+
153+
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.
154+
To make a request against an ELB with id `<elb-id>`, use the URL:
155+
156+
```bash
157+
http(s)://localhost.localstack.cloud:4566/_aws/elb/<elb-id>/<elb-path>
158+
```
159+
160+
Here's an example of how you would access the load balancer with a name of `example-lb` with the subdomain-based URL format:
161+
162+
```bash
163+
http(s)://example-lb.elb.localhost.localstack.cloud:4566/test/path
164+
```
165+
166+
With the alternative URL structure:
167+
168+
```bash
169+
http(s)://localhost.localstack.cloud:4566/_aws/elb/example-lb/test/path
170+
```
171+
151172
## Examples
152173

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

0 commit comments

Comments
 (0)