|
1 |
| -AWS Replicator Extension (experimental) |
| 1 | +AWS Cloud Proxy Extension (experimental) |
2 | 2 | ========================================
|
3 | 3 | [](https://app.localstack.cloud/extensions/remote?url=git+https://github.com/localstack/localstack-extensions/#egg=localstack-extension-aws-replicator&subdirectory=aws-replicator)
|
4 | 4 |
|
5 |
| -A LocalStack extension to replicate AWS resources into your local machine. |
| 5 | +A LocalStack extension to proxy and integrate AWS resources into your local machine. |
| 6 | +This enables one flavor of "hybrid" or "remocal" setups where you can easily bridge the gap between LocalStack (local resources) and remote AWS (resources in the real cloud). |
6 | 7 |
|
7 |
| -⚠️ Please note that this extension is experimental and currently under active development. |
| 8 | +⚠️ Please note that this extension is experimental and still under active development. |
| 9 | + |
| 10 | +⚠️ Note: Given that the scope of this extension has recently changed (see [below](#resource-replicator-cli-deprecated)), it may get renamed from `aws-replicator` to `cloud-proxy` in an upcoming release. |
8 | 11 |
|
9 | 12 | ## Prerequisites
|
10 | 13 |
|
11 | 14 | * LocalStack Pro
|
12 | 15 | * Docker
|
13 | 16 | * Python
|
14 | 17 |
|
15 |
| -## Overview |
16 |
| - |
17 |
| -This extension currently offers two modes of operation: (1) the AWS connection proxy, and (2) the resource replicator CLI. |
18 |
| - |
19 |
| -## AWS Connection Proxy |
| 18 | +## AWS Cloud Proxy |
20 | 19 |
|
21 |
| -The AWS connection proxy can be used to forward certain API calls in LocalStack to real AWS, in order to enable seamless transition between local and remote resources. |
| 20 | +The AWS Cloud Proxy can be used to forward certain API calls in LocalStack to real AWS, in order to enable seamless transition between local and remote resources. |
22 | 21 |
|
23 | 22 | **Warning:** Be careful when using the proxy - make sure to _never_ give access to production accounts or any critical/sensitive data!
|
24 | 23 |
|
25 |
| -**Note:** The replicator CLI currently works only when installing the `localstack` CLI via `pip`. If you're downloading the `localstack` CLI as a [binary release](https://docs.localstack.cloud/getting-started/installation/#localstack-cli), then please use the proxy configuration UI described below. |
| 24 | +**Note:** The Cloud Proxy CLI currently works only when installing the `localstack` CLI via `pip`. |
| 25 | +If you're downloading the `localstack` CLI as a [binary release](https://docs.localstack.cloud/getting-started/installation/#localstack-cli), then please use the proxy configuration UI described below. |
26 | 26 |
|
27 | 27 | ### Usage
|
28 | 28 |
|
@@ -66,7 +66,7 @@ EXTRA_CORS_ALLOWED_ORIGINS=https://aws-replicator.localhost.localstack.cloud:456
|
66 | 66 |
|
67 | 67 | 5. Now we can communicate with the real AWS cloud resources, directly via LocalStack.
|
68 | 68 |
|
69 |
| -To clean up the running proxy container simply click "disable" on the Replicator UI. |
| 69 | +To clean up the running proxy container simply click "disable" on the Cloud Proxy UI. |
70 | 70 |
|
71 | 71 | ### Resource-specific proxying
|
72 | 72 |
|
@@ -117,38 +117,12 @@ In addition to the proxy services configuration shown above, the following confi
|
117 | 117 |
|
118 | 118 | **Note:** Due to some recent changes in the core framework, make sure to start up your LocalStack container with the `GATEWAY_SERVER=hypercorn` configuration enabled, for backwards compatibility. This will be fixed in an upcoming release.
|
119 | 119 |
|
120 |
| -## Resource Replicator CLI |
121 |
| - |
122 |
| -The figure below illustrates how the extension can be used to replicate the state, e.g., an SQS queue and the messages contained in it, from AWS into your LocalStack instance. |
123 |
| - |
124 |
| - |
| 120 | +## Resource Replicator CLI (deprecated) |
125 | 121 |
|
126 |
| -To use the resource replicator, make sure that you have access to AWS configured in your terminal. Note: the extension will only talk to AWS in read-only mode, and will **not** make any changes to your real AWS account. |
| 122 | +Note: Previous versions of this extension also offered a "replicate" mode to copy/clone (rather than proxy) resources from an AWS account into the local instance. |
| 123 | +This functionality has been removed from this extension, and is now being migrated to a new extension (more details following soon). |
127 | 124 |
|
128 |
| -The following command can be used to replicate SQS queues (incl. their messages) into your LocalStack instance: |
129 |
| -``` |
130 |
| -$ localstack aws replicate -s sqs |
131 |
| -``` |
132 |
| - |
133 |
| -Once the command has completed, you should be able to list and interact with the queue that was replicated into your local account: |
134 |
| -``` |
135 |
| -$ awslocal sqs list-queues |
136 |
| -... |
137 |
| -$ awslocal sqs receive-message --queue-url ... |
138 |
| -... |
139 |
| -``` |
140 |
| - |
141 |
| -## Installing |
142 |
| - |
143 |
| -To install the CLI extension, use the following `pip` command: |
144 |
| -```bash |
145 |
| -pip install "git+https://github.com/localstack/localstack-extensions/#egg=localstack-extension-aws-replicator&subdirectory=aws-replicator" |
146 |
| -``` |
147 |
| - |
148 |
| -To install the extension itself (server component running inside LocalStack), use the following `extensions` command: |
149 |
| -```bash |
150 |
| -localstack extensions install "git+https://github.com/localstack/localstack-extensions/#egg=localstack-extension-aws-replicator&subdirectory=aws-replicator" |
151 |
| -``` |
| 125 | +If you wish to access the deprecated instructions, they can be found [here](https://github.com/localstack/localstack-extensions/blob/fe0c97e8a9d94f72c80358493e51ce6c1da535dc/aws-replicator/README.md#resource-replicator-cli). |
152 | 126 |
|
153 | 127 | ## Change Log
|
154 | 128 |
|
|
0 commit comments