Skip to content

Commit

Permalink
Change API key references to Auth Token (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
lakkeger authored Nov 23, 2023
1 parent edda95a commit ce47b15
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions charts/localstack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,23 @@ The command removes all the Kubernetes components associated with the chart and

You can use this chart with LocalStack Pro by:
1. Changing the image to `localstack/localstack-pro`.
2. Providing your API key as an environment variable.
2. Providing your Auth Token as an environment variable.
_(API keys are deprecated by Localstack v3.0)_

You can set these values in a YAML file (in this example `pro-values.yaml`):
```yaml
image:
repository: localstack/localstack-pro

extraEnvVars:
- name: LOCALSTACK_API_KEY
value: "<your api key>"
- name: LOCALSTACK_AUTH_TOKEN
value: "<your auth token>"
```
If you have the LocalStack API key in a secret, you can also reference it directly with `extraEnvVars`:
If you have the LocalStack Auth Token in a secret, you can also reference it directly with `extraEnvVars`:
```
extraEnvVars:
- name: LOCALSTACK_API_KEY
- name: LOCALSTACK_AUTH_TOKEN
valueFrom:
secretKeyRef:
name: <name of the secret>
Expand Down
4 changes: 2 additions & 2 deletions charts/localstack/test-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ mountDind:

# set the API key from an already existing secret
# extraEnvVars:
# - name: LOCALSTACK_API_KEY
# - name: LOCALSTACK_AUTH_TOKEN
# valueFrom:
# secretKeyRef:
# name: <name of the secret containing the API key>
# key: <name of the key in the secret containing the API key>

# or set the API key directly
# extraEnvVars:
# - name: LOCALSTACK_API_KEY
# - name: LOCALSTACK_AUTH_TOKEN
# value: "<your api key>"

# enable kubernetes lambda executor (only pro)
Expand Down

0 comments on commit ce47b15

Please sign in to comment.