Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit ed7a076

Browse files
authored
fix the s3 troubleshooting content (#1791)
1 parent 9e3b483 commit ed7a076

File tree

1 file changed

+30
-24
lines changed
  • content/en/user-guide/state-management/cloud-pods

1 file changed

+30
-24
lines changed

content/en/user-guide/state-management/cloud-pods/index.md

Lines changed: 30 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -437,30 +437,6 @@ Full S3 remotes support is available in the CLI from version 3.2.0.
437437
If you experience any difficulties, update your [LocalStack CLI]({{< ref "/getting-started/installation/#updating" >}}).
438438
{{< /callout >}}
439439

440-
#### Troubleshooting
441-
442-
You might encounter an error like the following:
443-
444-
{{< command >}}
445-
An error occurred (InvalidAccessKeyId) when calling the CreateBucket operation: The AWS Access Key Id you provided does not exist in our records.
446-
{{< / command >}}
447-
448-
This means that you are likely using temporary AWS credentials and the S3 remote configuration is missing the `AWS_SESSION_TOKEN` environment variable.
449-
To fix the issue, first export `AWS_SESSION_TOKEN` into your environment.
450-
Then, be sure to add the `session_token` placeholder to the URL of the `pod remote add` command:
451-
452-
{{< command >}}
453-
$ localstack pod remote add s3-storage-aws 's3://ls-pods-bucket-test/?access_key_id={access_key_id}&secret_access_key={secret_access_key}&session_token={session_token}'
454-
{{< / command >}}
455-
456-
If you are experiencing issues connecting to the S3 bucket, you might need to add the S3 URL to the list of URLs that it resolved upstream, e.g.,:
457-
458-
```bash
459-
DNS_NAME_PATTERNS_TO_RESOLVE_UPSTREAM=ls-pods-bucket-test.s3.amazonaws.com/
460-
```
461-
462-
For more info, browse the [Skip LocalStack DNS Resolution]({{< ref "/user-guide/tools/dns-server/#skip-localstack-dns-resolution" >}}) section of our docs.
463-
464440
### ORAS remote storage
465441

466442
The ORAS remote enables users to store Cloud Pods in OCI-compatible registries like Docker Hub, Nexus, or ECS registries.
@@ -722,3 +698,33 @@ An error occurred while checking remote management for pod "cloud-pod-product-ap
722698
Check if your machine's clock is set incorrectly or if the certificate store is outdated.
723699
This error can also occur if you use `localstack` as `LOCALSTACK_HOST`.
724700
In this case, the DNS incorrectly resolves `api.localstack.cloud` to `localhost`, causing a certificate mismatch.
701+
702+
### `InvalidAccessKeyId` during `CreateBucket` API call
703+
704+
You may see this error:
705+
706+
```bash
707+
An error occurred (InvalidAccessKeyId) when calling the CreateBucket operation: The AWS Access Key Id you provided does not exist in our records.
708+
```
709+
710+
This usually means you're using temporary AWS credentials, but `AWS_SESSION_TOKEN` is missing from the environment.
711+
712+
To fix this, ensure that you export the `AWS_SESSION_TOKEN` environment variable:
713+
714+
{{< command >}}
715+
$ export AWS_SESSION_TOKEN=...
716+
{{< / command >}}
717+
718+
Then, add `session_token` to the `pod remote add` URL:
719+
720+
{{< command >}}
721+
$ localstack pod remote add s3-storage-aws 's3://ls-pods-bucket-test/?access_key_id={access_key_id}&secret_access_key={secret_access_key}&session_token={session_token}'
722+
{{< / command >}}
723+
724+
If you're still unable to connect to the S3 bucket, add the bucket hostname to the upstream DNS resolution list:
725+
726+
```bash
727+
DNS_NAME_PATTERNS_TO_RESOLVE_UPSTREAM=ls-pods-bucket-test.s3.amazonaws.com/
728+
```
729+
730+
For more details, see the [Skip LocalStack DNS Resolution]({{< ref "/user-guide/tools/dns-server/#skip-localstack-dns-resolution" >}}) section.

0 commit comments

Comments
 (0)