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: src/content/docs/aws/ci-pipelines/gitlab-ci.md
+10-68Lines changed: 10 additions & 68 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,25 +18,26 @@ You must always use `privileged = true` in your GitLab CI's `config.toml` file w
18
18
For more information, see [GitLab CI Docker-in-Docker](https://docs.gitlab.com/ee/ci/docker/using_docker_build.html#use-docker-in-docker-executor) documentation.
19
19
:::
20
20
21
+
LocalStack requires a [CI Auth Token](https://app.localstack.cloud/workspace/auth-tokens), which you must add to the repository's environment variables as `LOCALSTACK_AUTH_TOKEN`.
22
+
Go to your project's **Settings > CI/CD** and expand the **Variables** section.
23
+
Select the **Add Variable** button and fill in the necessary details with `LOCALSTACK_AUTH_TOKEN` as the key and your CI Auth Token as the value.
24
+
After you create the variable, you can use it in the `.gitlab-ci.yml` file.
21
25
22
-
<details>
23
-
<summary>For LocalStack versions before 3.0.0</summary>
You can easily enable LocalStack for AWS by using the `localstack/localstack-pro` image and adding your [CI Auth Token](https://app.localstack.cloud/workspace/auth-tokens) to the repository's environment variables as `LOCALSTACK_AUTH_TOKEN`.
83
-
Go to your project's **Settings > CI/CD** and expand the **Variables** section.
84
-
Select the **Add Variable** button and fill in the necessary details with `LOCALSTACK_AUTH_TOKEN` as the key and your CI Auth Token as the value.
85
-
After you create the variable, you can use it in the `.gitlab-ci.yml` file.
86
-
87
-
However, variables set in the GitLab UI are not automatically passed down to service containers.
88
-
You need to assign them as variables in the UI, and then re-assign them in your `.gitlab-ci.yml`.
89
-
90
-
```yaml showshowLineNumbers
91
-
...
92
-
variables:
93
-
LOCALSTACK_AUTH_TOKEN: $LOCALSTACK_AUTH_TOKEN
94
-
...
95
-
services:
96
-
- name: localstack/localstack-pro:latest
97
-
alias: localstack
98
-
...
99
-
```
100
-
101
82
You can check the logs of the LocalStack container to see if the activation was successful.
102
83
If the CI Auth Token activation fails, LocalStack container will exit with an error code.
103
84
@@ -176,45 +157,6 @@ job:
176
157
177
158
Find more information about cloud pods [here](/aws/developer-tools/snapshots/cloud-pods).
178
159
179
-
#### Ephemeral Instance (Preview)
180
-
181
-
```yaml showshowLineNumbers
182
-
...
183
-
variables:
184
-
LOCALSTACK_AUTH_TOKEN: $LOCALSTACK_AUTH_TOKEN
185
-
...
186
-
setup-job:
187
-
stage: build
188
-
before_script:
189
-
- |
190
-
response=$(curl -X POST -d '{"auto_load_pod": "false"}' \
0 commit comments