Skip to content

Commit

Permalink
use command macro
Browse files Browse the repository at this point in the history
  • Loading branch information
giograno committed Sep 27, 2023
1 parent 45fa159 commit 01fdb6b
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions content/en/user-guide/tools/cloud-pods/remotes/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ Afterwards, we add a new remote that explicitly targets an S3 bucket.
With the command below, we are creating a new remote called `s3-storage-aws` that will store the Cloud Pods' artifacts into an S3 bucket named `ls-pods-bucket-test`.
The `access_key_id` and `secret_access_key` placeholders will make sure that the AWS credentials are correctly passed to the container.

```bash
{{< command >}}
$ localstack pod remote add s3-storage-aws 's3://ls-pods-bucket-test/?access_key_id={access_key_id}&secret_access_key={secret_access_key}'
```
{{< / command >}}

Finally, we can use the usual `pod` CLI command to create a new pod that targets the created remote.

```bash
{{< command >}}
localstack pod save my-pod s3-storage-aws
```
{{< / command >}}

After issuing the command, we can verify that the S3 buckets now contains the pod artifacts by simply running:

Expand All @@ -74,9 +74,9 @@ aws s3 ls s3://ls-pods-bucket-test

With the `pod load` command we can later load the same pod saved into this remote:

```bash
{{< command >}}
localstack pod load my-pod s3-storage-aws
```
{{< / command >}}

## ORAS remote storage
The ORAS remote allows users to save Cloud Pods in OCI-compatible registries such as Docker Hub, Nexus, or ECS registries.
Expand All @@ -94,21 +94,21 @@ export ORAS_PASSWORD=ILoveLocalStack1!

Then, I can use the CLI to create a new remote called `oras-remote`.

```shell
{{< command >}}
localstack pod remote add oras-remote oras://{oras_username}:{oras_password}@registry.hub.docker.com/<docker_hub_id>
```
{{< / command >}}

Finally, we can save a pod with the just-configured remote, where `my-pod` is the name of the Cloud Pod while `oras-remote` is the name of the remote itself.

```shell
{{< command >}}
localstack pod save my-pod oras-remote
```
{{< / command >}}

Similarly, we can perform the reverse operation and load a Cloud Pod from `oras-remote` with the following command:

```shell
{{< command >}}
localstack pod load my-pod oras-remote
```
{{< / command >}}

### Miscellaneous
If not explicitly specified, all Cloud Pods commands target the LocalStack Platform as storage remote by default.
Expand Down

0 comments on commit 01fdb6b

Please sign in to comment.