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
Copy file name to clipboardexpand all lines: content/en/docs/Local AWS Services/elastic-container-registry/index.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,8 @@ description: >
8
8
9
9
A basic version of Elastic Container Registry (ECR) is available to store application images. ECR is often used in combination with other APIs that deploy containerized apps, like ECS or EKS.
Copy file name to clipboardexpand all lines: content/en/docs/Local AWS Services/elastic-kubernetes-service/index.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ Please note that EKS requires an existing local Kubernetes installation. In rece
12
12

13
13
14
14
The example below illustrates how to create an EKS cluster configuration (assuming you have [`awslocal`](https://github.com/localstack/awscli-local) installed):
Simply configure your Kubernetes client (e.g., `kubectl` or other SDK) to point to the `endpoint` specified in the `create-cluster` output above. Depending on whether you're calling the Kubernetes API from the local machine or from within a Lambda, you may have to use different endpoint URLs (`https://localhost:6443` vs `https://172.17.0.1:6443`).
Copy file name to clipboardexpand all lines: content/en/docs/Local AWS Services/elastic-mapreduce/index.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -9,12 +9,12 @@ description: >
9
9
LocalStack Pro allows running data analytics workloads locally via the [EMR](https://aws.amazon.com/emr) API. EMR utilizes various tools in the [Hadoop](https://hadoop.apache.org/) and [Spark](https://spark.apache.org) ecosystem, and your EMR instance is automatically configured to connect seamlessly to the LocalStack S3 API.
10
10
11
11
To create a virtual EMR cluster locally from the command line (assuming you have [`awslocal`](https://github.com/localstack/awscli-local) installed):
The commmand above will spin up one more more Docker containers on your local machine that can be used to run analytics workloads using Spark, Hadoop, Pig, and other tools.
Copy file name to clipboardexpand all lines: content/en/docs/Local AWS Services/elasticache/index.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ description: >
9
9
A basic version of [ElastiCache](https://aws.amazon.com/elasticache/) is provided. By default, the API is started on http://localhost:4598 and supports running a local Redis instance (Memcached support coming soon).
10
10
11
11
After starting LocalStack Pro, you can test the following commands:
For a more detailed example illustrating how to run a local Glue PySpark job, please refer to this [sample repository](https://github.com/localstack/localstack-pro-samples/tree/master/glue-etl-jobs).
Copy file name to clipboardexpand all lines: content/en/docs/Local AWS Services/iam/index.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ The environment configuration `ENFORCE_IAM=1` is required to enable this feature
14
14
{{< /alert >}}
15
15
16
16
Below is a simple example that illustrates the use of IAM policy enforcement. It first attempts to create an S3 bucket with the default user (which fails), then create a user and attempts to create a bucket with that user (which fails again), and then finally attaches a policy to the user to allow `s3:CreateBucket`, which allows the bucket to be created.
17
-
```
17
+
{{< command >}}
18
18
$ awslocal s3 mb s3://test
19
19
make_bucket failed: s3://test An error occurred (AccessDeniedException) when calling the CreateBucket operation: Access to the specified resource is denied
Copy file name to clipboardexpand all lines: content/en/docs/Local AWS Services/iot/index.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -9,12 +9,12 @@ description: >
9
9
Basic support for [IoT](https://aws.amazon.com/iot/) (including IoT Analytics, IoT Data, and related APIs) is provided in the Pro version. The main endpoints for creating and updating entities are currently implemented, as well as the CloudFormation integrations for creating them.
10
10
11
11
The IoT API ships with a built-in MQTT message broker. In order to get the MQTT endpoint, the `describe-endpoint` API can be used; for example, using [`awslocal`](https://github.com/localstack/awscli-local):
12
-
```
12
+
{{< command >}}
13
13
$ awslocal iot describe-endpoint
14
14
{
15
15
"endpointAddress": "localhost:4520"
16
16
}
17
-
```
17
+
{{< / command >}}
18
18
19
19
This endpoint can then be used with any MQTT client to send/receive messages (e.g., using the endpoint URL `mqtt://localhost:4520`).
Copy file name to clipboardexpand all lines: content/en/docs/Local AWS Services/multi-account-setups/index.md
+6-6
Original file line number
Diff line number
Diff line change
@@ -9,12 +9,12 @@ description: >
9
9
Unlike the open source LocalStack, which uses a single hardcoded account ID (`000000000000`), the Pro version allows to use multiple instances for different AWS account IDs in parallel.
10
10
11
11
In order to set up a multi-account environment, simply configure the `TEST_AWS_ACCOUNT_ID` to include a comma-separated list of account IDs. For example, use the following to start up LocalStack with two account IDs:
@@ -23,13 +23,13 @@ $ AWS_ACCESS_KEY_ID=000000000001 aws --endpoint-url=http://localhost:4566 s3 ls
23
23
2020-05-24 17:09:41 bucket-account-one
24
24
$ AWS_ACCESS_KEY_ID=000000000002 aws --endpoint-url=http://localhost:4566 s3 ls
25
25
2020-05-24 17:09:53 bucket-account-two
26
-
```
26
+
{{< / command >}}
27
27
28
28
Note that using an invalid account ID should result in a 404 (not found) error response from the API:
29
-
```
29
+
{{< command >}}
30
30
$ AWS_ACCESS_KEY_ID=123000000123 aws --endpoint-url=http://localhost:4566 s3 ls
31
31
An error occurred (404) when calling the ListBuckets operation: Not Found
32
-
```
32
+
{{< / command >}}
33
33
34
34
{{< alert >}}
35
35
**Note:** For now, the account ID is encoded directly in the `AWS_ACCESS_KEY_ID` client-side variable, for simplicity. In a future version, we will support proper access key IDs issued by the local IAM service, which will then internally be translated to corresponding account IDs.
Copy file name to clipboardexpand all lines: content/en/docs/Local AWS Services/rds/index.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ description: >
9
9
LocalStack supports a basic version of [RDS](https://aws.amazon.com/rds/) for testing. Currently, it is possible to spin up PostgreSQL databases on the local machine; support for MySQL and other DB engines is under development and coming soon.
10
10
11
11
The local RDS service also supports the [RDS Data API](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html), which allows executing data queries over a JSON/REST interface. Below is a simple example that illustrates (1) creation of an RDS database, (2) creation of a SecretsManager secret with the DB password, and (3) running a simple `SELECT 123` query via the RDS Data API.
Copy file name to clipboardexpand all lines: content/en/docs/Local AWS Services/route53/index.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -9,14 +9,14 @@ description: >
9
9
The Route53 API in LocalStack Pro allows you to create hosted zones and to manage DNS entries (e.g., A records) which can then be queried via the built-in DNS server.
10
10
11
11
The example below illustrates the creation of a hosted zone `example.com`, registration of an A record named `test.example.com` that points to `1.2.3.4`, and finally querying the DNS record by using the `dig` command against the DNS server running on `localhost` (inside the LocalStack container, on port `53`):
**Note**: Using the built-in DNS capabilities requires privileged access for the LocalStack container (please also refer to the `DNS_ADDRESS` configuration variable).
Copy file name to clipboardexpand all lines: content/en/docs/Local AWS Services/ses/index.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -11,9 +11,9 @@ The Pro version ships with extended support Simple Email Service (SES), includin
11
11
Please refer to the [Configuration section]({{< ref "#configuration" >}}) for instructions on how to configure the connection parameters of your SMTP server (`SMTP_HOST`/`SMTP_USER`/`SMTP_PASS`).
12
12
13
13
Once your SMTP server has been configured, you can use the SES user interface in the Web app to create a new email account (e.g., `[email protected]`), and then send an email via the command line (or your SES client SDK):
14
-
```
14
+
{{< command >}}
15
15
$ awslocal ses send-email --from [email protected] --message 'Body={Text={Data="Lorem ipsum dolor sit amet, consectetur adipiscing elit, ..."}},Subject={Data=Test Email}' --destination 'ToAddresses=[email protected]'
16
-
```
16
+
{{< / command >}}
17
17
18
18
The [Web user interface](https://app.localstack.cloud) then allows you to interactively browse through the sent email messages, as illustrated in the screenshot below:
0 commit comments