Skip to content

Commit

Permalink
docs: run local --proxy blog (#5460)
Browse files Browse the repository at this point in the history
* docs: `run local --proxy` blog

* add links

* Update site/content/blogs/release-v132.en.md

* better naming

* address feedback from @iamhopaul123

---------

Co-authored-by: Wanxian Yang <79273084+Lou1415926@users.noreply.github.com>
  • Loading branch information
dannyrandall and Lou1415926 committed Nov 9, 2023
1 parent d5b274c commit 4259e64
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions site/content/blogs/release-v132.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Thanks to every one of you who shows love and support for AWS Copilot.

Copilot v1.32 brings big enhancements to help you develop more flexibly and efficiently:

- **`copilot run local --proxy`**:
- **`copilot run local --proxy`**: Proxy outbound traffic from your local containers to services and RDS instances in your environment. [See detailed section](#copilot-run-local---proxy)
- **`copilot run local --watch`**: Automatically rebuilds your containers when you make changes to your code. [See detailed section](#copilot-run-local---watch)
- **Importing ALBs**: You can front your Load-Balanced Web Services with existing ALBs. [See detailed section](#imported-ALBs)

Expand All @@ -32,7 +32,16 @@ Copilot v1.32 brings big enhancements to help you develop more flexibly and effi

See the section [Overview](../docs/concepts/overview.en.md) for a more detailed introduction to AWS Copilot.

##
## `copilot run local --proxy`

The new `--proxy` flag on `copilot run local` enhances your local development experience by making it possible for your local containers to talk to services deployed in your environment.

For example, imagine you have an environment with two services, `users` and `orders`, that both have [Service Connect](../docs/manifest/lb-web-service.md#network-connect) enabled.
Additionally, `orders` has an [RDS addon](../docs/developing/addons/workload.md) deployed that it uses for storing data.
You can now run `copilot run local --proxy --name orders` and your local `orders` containers will be able to reach:

- The `users` service, using its service connect URL (defaults to `http://users:<port>`)
- `orders`'s RDS database, using any DB instance url (like `app-env-orders-random-characters.us-west-2.rds.amazonaws.com:5432`) or DB cluster URL.

## `copilot run local --watch`

Expand Down

0 comments on commit 4259e64

Please sign in to comment.