You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[AWS Account](https://aws.amazon.com/) with an [`AWS_ACCESS_KEY_ID` & `AWS_SECRET_ACCESS_KEY`](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html#Using_CreateAccessKey)
37
37
38
38
## Install the AWS Cloud Proxy extension
39
39
40
40
To install the AWS Cloud Proxy Extension, follow these steps:
41
41
42
-
1. Launch your LocalStack container using the `localstack` CLI, ensuring that `LOCALSTACK_AUTH_TOKEN` is available in the environment.
42
+
1. Launch your LocalStack container using the `lstk` CLI, ensuring that `LOCALSTACK_AUTH_TOKEN` is available in the environment.
43
43
2. Visit the [Extensions library](https://app.localstack.cloud/extensions/library) page on the LocalStack Web Application.
Once the installation is complete, you will notice that your LocalStack container has restarted with the AWS Cloud Proxy extension successfully installed.
49
-
To confirm the installation, execute the following command:
-[Terraform](https://developer.hashicorp.com/terraform/tutorials/aws-get-started/install-cli) or [OpenTofu](https://opentofu.org/docs/intro/install/) and [terraform-local](/aws/connecting/infrastructure-as-code/terraform#install-the-tflocal-wrapper-script)
36
+
-[Terraform](https://developer.hashicorp.com/terraform/tutorials/aws-get-started/install-cli) or [OpenTofu](https://opentofu.org/docs/intro/install/) and [`lstk terraform`](/aws/connecting/infrastructure-as-code/terraform#lstk-terraform)
LocalStack provides a remote storage backend that can be used to store the state of your application and share it with your team members.
203
209
204
-
The Cloud Pods CLI is included in the LocalStack CLI installation, so there's no need for additional plugins to begin using it.
210
+
Cloud Pods are managed through the `snapshot` command, included in the `lstk` CLI installation, so there's no need for additional plugins to begin using it.
205
211
The `LOCALSTACK_AUTH_TOKEN` needs to be set as an environment variable.
206
212
207
-
Additionally, there are other commands for managing Cloud Pods included in the CLI:
208
-
209
-
```bash
210
-
localstack pod --help
211
-
```
212
-
213
-
```bash title="Output"
214
-
Usage: localstack pod [OPTIONS] COMMAND [ARGS]...
215
-
216
-
Manage the state of your instance via Cloud Pods.
217
-
218
-
Options:
219
-
-h, --help Show this message and exit.
213
+
Additionally, there are other `snapshot` subcommands for managing Cloud Pods:
220
214
221
-
Commands:
222
-
delete Delete a Cloud Pod
223
-
list List all available Cloud Pods
224
-
load Load the state of a Cloud Pod into the application runtime
225
-
remote Manage Cloud Pod remotes
226
-
save Create a new Cloud Pod
227
-
versions List all available versions for a Cloud Pod
228
-
```
215
+
-`lstk snapshot save` (alias `lstk save`) — create a new Cloud Pod
216
+
-`lstk snapshot load` (alias `lstk load`) — load the state of a Cloud Pod into the application runtime
217
+
-`lstk snapshot list` — list all available Cloud Pods
218
+
-`lstk snapshot remove` — delete a Cloud Pod
219
+
-`lstk snapshot show` — show metadata for a Cloud Pod
229
220
230
221
### Pulling and Loading the Cloud Pod
231
222
@@ -237,7 +228,7 @@ Now, in a fresh LocalStack instance, Alice can immediately load the Cloud Pod, b
237
228
same organization:
238
229
239
230
```bash
240
-
localstack pod load cloud-pod-product-app
231
+
lstk snapshot load pod:cloud-pod-product-app
241
232
```
242
233
243
234
```bash title="Output"
@@ -329,10 +320,10 @@ start to finish.
329
320
330
321
### Other Remote Options
331
322
332
-
For organizations with specific data regulations, LocalStack offers multiple remote storage options for Cloud Pods,
323
+
For organizations with specific data regulations, LocalStack offers an Amazon S3 storage option,
333
324
allowing full control with on-premises storage if needed.
334
325
That way, Bob, Alice and Carol could collaborate using an S3 bucket for remote storage.
335
-
The Cloud Pods command-line interface enables users to manage these remotes with ease, by following the instructions in the
326
+
The `lstk`command-line interface enables users to manage this storage with ease, by following the instructions in the
Copy file name to clipboardExpand all lines: src/content/docs/aws/tutorials/ecs-ecr-container-app.mdx
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: "Deploying containers on Elastic Container Service (ECS) clusters using Elastic Container Registry (ECR) and AWS Fargate, with LocalStack"
3
-
description: Set up an NGINX web server via Elastic Container Service (ECS) and Elastic Container Registry (ECR) to serve a static website using LocalStack. Learn how you can use CloudFormation templates to declaratively define, create, and deploy your architecture locally with LocalStack's `awslocal` CLI.
3
+
description: Set up an NGINX web server via Elastic Container Service (ECS) and Elastic Container Registry (ECR) to serve a static website using LocalStack. Learn how you can use CloudFormation templates to declaratively define, create, and deploy your architecture locally with LocalStack's `lstk aws` CLI.
4
4
services:
5
5
- ecs
6
6
- ecr
@@ -26,7 +26,7 @@ This tutorial will showcase using LocalStack to set up an NGINX web server to se
26
26
## Prerequisites
27
27
28
28
-[LocalStack for AWS](https://localstack.cloud/pricing/)
The output of this command will contain the `repositoryUri` value that we'll need in the next step:
@@ -360,13 +360,13 @@ Outputs:
360
360
To deploy the CloudFormation template we created earlier, use the following command:
361
361
362
362
```bash
363
-
awslocal cloudformation create-stack --stack-name infra --template-body file://templates/ecs.infra.yml
363
+
lstk aws cloudformation create-stack --stack-name infra --template-body file://templates/ecs.infra.yml
364
364
```
365
365
366
366
Wait until the stack status changes to `CREATE_COMPLETE` by running the following command:
367
367
368
368
```bash
369
-
awslocal cloudformation wait stack-create-complete --stack-name infra
369
+
lstk aws cloudformation wait stack-create-complete --stack-name infra
370
370
```
371
371
372
372
You can also check your deployed stack on the LocalStack Web Application by navigating to the [CloudFormation resource browser](https://app.localstack.cloud/resources/cloudformation/stacks).
@@ -535,36 +535,36 @@ Resources:
535
535
Next, let's deploy the CloudFormation template by running the following command:
Earlier, we configured the application to run on port `45139`, in our `HostPort` parameter.
@@ -581,7 +581,7 @@ You should see the default index page of the NGINX web server.
581
581
## Conclusion
582
582
583
583
In this tutorial, we have demonstrated how to deploy a containerized service locally using Amazon ECS, ECR, and LocalStack.
584
-
We have also shown how you can use CloudFormation templates with the awslocal CLI to deploy your local AWS infrastructure.
584
+
We have also shown how you can use CloudFormation templates with the `lstk aws` CLI to deploy your local AWS infrastructure.
585
585
586
586
With LocalStack, you can easily mount code from your host filesystem into the ECS container, allowing for a quicker debugging loop that doesn't require rebuilding and redeploying the task's Docker image for each change.
0 commit comments