Skip to content

Commit 01c2a1b

Browse files
committed
Merge branch 'master' into table-sizing-improvements
2 parents a00cfed + 665f498 commit 01c2a1b

File tree

14 files changed

+211
-290
lines changed

14 files changed

+211
-290
lines changed
3.41 MB
Loading
162 KB
Loading

src/content/docs/aws/capabilities/chaos-engineering/chaos-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ The rule to be removed must be exactly the same as in the existing configuration
183183

184184
## Comparison with Fault Injection Service
185185

186-
AWS [Fault Injection Service (FIS)]({{< ref "fis" >}}) also allows controlled chaos engineering experiments on infrastructure.
186+
AWS [Fault Injection Service (FIS)](/aws/services/fis) also allows controlled chaos engineering experiments on infrastructure.
187187
While similar in purpose, there are notable differences between FIS and LocalStack Chaos API.
188188

189189
This table highlights those differences, offering a detailed comparison of how each service approaches chaos engineering, their capabilities, and their integration options.

src/content/docs/aws/capabilities/chaos-engineering/chaos-engineering-dashboard.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ sidebar:
1010

1111
The Chaos Engineering Dashboard in LocalStack offers streamlined testing for cloud applications, enabling you to simulate server errors, service outages, regional disruptions, and network latency with ease, ensuring your app is ready for real-world challenges.
1212

13-
The dashboard uses [LocalStack Chaos API]({{< ref "chaos-api" >}}) under the hood to offer a set of customizable templates that can be seamlessly integrated into any automation workflows.
13+
The dashboard uses [LocalStack Chaos API](/aws/capabilities/chaos-engineering/chaos-api) under the hood to offer a set of customizable templates that can be seamlessly integrated into any automation workflows.
1414

1515
![chaos engineering dashboard](/images/aws/chaos-engineering-dashboard.png)
1616

src/content/docs/aws/capabilities/config/multi-account-setups.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ See [this issue](https://github.com/localstack/localstack/issues/7041) for more
1212
LocalStack ships with multi-account support which allows namespacing based on AWS account ID.
1313

1414
LocalStack uses the value in the AWS Access Key ID field for the purpose of namespacing over account ID.
15-
For more information, see [Credentials]({{< ref "credentials" >}}).
15+
For more information, see [Credentials](/aws/capabilities/config/credentials).
1616

1717
The Access Key ID field can be configured in the AWS CLI in multiple ways: please refer to [AWS CLI documentation](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html#cli-configure-quickstart-precedence).
1818

src/content/docs/aws/capabilities/config/podman.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ From the Podman docs:
2020

2121
To run `localstack`, simply aliasing `alias docker=podman` is not enough, for the following reasons:
2222
- `localstack` is using [docker-py](https://pypi.org/project/docker/) which requires a connection to `/var/run/docker.sock`
23-
- Lambda requires mounting the Docker socket `/var/run/docker.sock` into the container (see [Lambda providers]({{< ref "user-guide/aws/lambda" >}})).
23+
- Lambda requires mounting the Docker socket `/var/run/docker.sock` into the container (see [Lambda providers](/aws/services/lambda)).
2424

2525
Here are several options on running LocalStack using podman:
2626

src/content/docs/aws/capabilities/event-studio.md

Lines changed: 0 additions & 96 deletions
This file was deleted.

src/content/docs/aws/capabilities/networking/accessing-endpoint-url.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,10 @@ DOCKER_FLAGS="--network my-network" localstack start
186186
# launch your container
187187
docker run --rm it --network my-network <image name>
188188
# then your code can access localstack at its container name (by default: localstack-main)
189-
{{</tab>}}
190-
{{<tab header="Docker" lang="bash">}}
189+
```
190+
</TabItem>
191+
<TabItem label="Docker">
192+
```bash
191193
# create the network
192194
docker network create my-network
193195
# launch localstack

src/content/docs/aws/capabilities/web-app/stack-insights.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The data is only used to provide you with insights into the usage of LocalStack
2424

2525
![Stack Insights](/images/aws/stack-insights-getting-started.png)
2626

27-
To start using this feature, log in to your [LocalStack account](https://app.localstack.cloud/) and start a [LocalStack instance on your local machine]({{< ref "getting-started/auth-token" >}}).
27+
To start using this feature, log in to your [LocalStack account](https://app.localstack.cloud/) and start a [LocalStack instance on your local machine](/aws/getting-started/auth-token).
2828
The system will start making your events accessible on the [Stack Insights dashboard](https://app.localstack.cloud/stacks).
2929

3030
Click on the Stack widget to see:

src/content/docs/aws/integrations/app-frameworks/spring-cloud-function.mdx

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ To that end, we use the "Shadow Jar" plugin.
118118

119119
Here's our final `build.gradle`:
120120

121-
```groovy showLineNumbers=true
121+
```groovy showLineNumbers=true title="build.gradle"
122122
plugins {
123123
id "java"
124124
id "org.jetbrains.kotlin.jvm" version '1.5.31'
@@ -210,7 +210,7 @@ In this project, we are following
210210
[official documentation](https://docs.aws.amazon.com/lambda/latest/dg/java-logging.html#java-wt-logging-using-log4j2.8)
211211
to setup up `src/main/resources/log4j2.xml` content.
212212

213-
```xml
213+
```xml title="log4j2.xml"
214214
?xml version="1.0" encoding="UTF-8"?>
215215
<Configuration packages="com.amazonaws.services.lambda.runtime.log4j2.LambdaAppender">
216216
<Appenders>
@@ -246,7 +246,7 @@ spring.cloud.function.scan.packages=org.localstack.sampleproject.api
246246
Once configured, you can use `FunctionInvoker` as a handler for your Rest API lambda function.
247247
It will automatically pick up the configuration we have just set.
248248

249-
```java
249+
```java title="FunctionInvoker.kt"
250250
org.springframework.cloud.function.adapter.aws.FunctionInvoker::handleRequest
251251
```
252252

@@ -276,7 +276,7 @@ Let's configure it by creating a new configuration class `JacksonConfiguration.k
276276
`src/main/kotlin/org/localstack/sampleproject/config`:
277277

278278

279-
```kotlin
279+
```kotlin title="JacksonConfiguration.kt"
280280
package org.localstack.sampleproject.config
281281

282282
import com.fasterxml.jackson.annotation.JsonInclude
@@ -319,9 +319,7 @@ implementations.
319319

320320
Let's create a small logging utility to simplify interactions with the logger
321321

322-
{/*{{< highlight kotlin "linenos=table" >}}*/}
323-
{/* TODO: packing this into a java block for now */}
324-
```kotlin
322+
```kotlin title="Logger.kt"
325323
package org.localstack.sampleproject.util
326324

327325
import org.apache.logging.log4j.LogManager
@@ -331,7 +329,6 @@ open class Logger {
331329
val LOGGER: Logger = LogManager.getLogger(javaClass.enclosingClass)
332330
}
333331
```
334-
{/*{{< / highlight >}}*/}
335332

336333
### Add Request/Response utilities
337334

@@ -404,7 +401,7 @@ To transfer data from requests into something more meaningful than JSON strings
404401
(and back) you will be using a lot of Models and Data Transfer Objects (DTOs).
405402
It's time to define our first one.
406403

407-
```kotlin showLineNumbers
404+
```kotlin showLineNumbers title="SampleModel.kt"
408405
package org.localstack.sampleproject.model
409406

410407
import com.fasterxml.jackson.annotation.JsonIgnore
@@ -423,7 +420,7 @@ data class SampleModel(
423420
Let's add our first endpoints to simulate CRUD operations on previously
424421
defined `SampleModel`:
425422

426-
```kotlin showLineNumbers
423+
```kotlin showLineNumbers title="SampleApi.kt"
427424
package org.localstack.sampleproject.api
428425

429426
import com.fasterxml.jackson.databind.ObjectMapper
@@ -476,7 +473,7 @@ We know Java's cold start is always a pain.
476473
To minimize this pain, we will try to define a pre-warming endpoint within the Rest API.
477474
By invoking this function every 5-10 mins we can make sure Rest API lambda is always kept in a pre-warmed state.
478475

479-
```kotlin showLineNumbers
476+
```kotlin showLineNumbers title="ScheduleApi.kt"
480477
package org.localstack.sampleproject.api
481478

482479
import com.fasterxml.jackson.databind.ObjectMapper
@@ -518,7 +515,7 @@ We can still define pure lambda functions, DynamoDB stream handlers, and so on.
518515

519516
Below you can find a little example of few lambda functions grouped in `LambdaApi` class.
520517

521-
```kotlin showLineNumbers
518+
```kotlin showLineNumbers title="LambdaApi.kt"
522519
package org.localstack.sampleproject.api
523520

524521
import com.amazonaws.services.lambda.runtime.events.DynamodbEvent
@@ -631,7 +628,7 @@ functions:
631628
```
632629
</TabItem>
633630
<TabItem label="AWS CDK">
634-
```java
631+
```java title="ApplicationStack.kt"
635632
package org.localstack.cdkstack
636633

637634
import java.util.UUID
@@ -706,7 +703,7 @@ class ApplicationStack(parent: Construct, name: String) : Stack(parent, name) {
706703
```
707704
</TabItem>
708705
<TabItem label="Terraform">
709-
```hcl
706+
```hcl title="variables.tf"
710707
variable "STAGE" {
711708
type = string
712709
default = "local"

0 commit comments

Comments
 (0)