Skip to content

Commit 844e31f

Browse files
drauedoquetzalliwritesremotesynthdfangl
authored
docs: Adding limitation to TEI docs. (#166)
Co-authored-by: Quetzalli <hola@quetzalliwrites.com> Co-authored-by: Brian Rinaldi <brian.rinaldi@gmail.com> Co-authored-by: Daniel Fangl <daniel.fangl@gmail.com>
1 parent e856383 commit 844e31f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/content/docs/aws/capabilities/networking/transparent-endpoint-injection.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,13 @@ Make sure to use this only for local testing, and never in production.
110110

111111
- The mechanism to disable certificate validation for these requests is not currently functional with Go Lambdas.
112112
To work around this issue, you'll need to manually set your endpoint when creating your AWS SDK client, as detailed in our documentation on the [Go AWS SDK](/aws/integrations/aws-sdks/go).
113+
- Transparent Endpoint Injection does not work when code runs inside the LocalStack container. If you need to connect to LocalStack from within the container, here are a couple of alternative approaches:
114+
- Set the AWS_ENDPOINT_URL environment variable:
115+
Set `AWS_ENDPOINT_URL=http://localhost.localstack.cloud:4566`. This is the recommended approach as it directly points your AWS client to the LocalStack endpoint.
116+
- Disable certificate validation (not recommended):
117+
If the first option isn't feasible, you can disable certificate validation by exporting an empty AWS_CA_BUNDLE variable(`export AWS_CA_BUNDLE=""`). However, note that this will cause a warning to be raised for every command. You can suppress these warnings by setting the `PYTHONWARNINGS=ignore` environment variable. This will only work for the `boto3` AWS SDK.
118+
- Transparent endpoint injection involves a combination redirecting requests using DNS and disabling certificate validation for these requests (to avoid issues when using https). Disabling certificate validation only works for processes LocalStack controls, for example Lambda (managed runtimes) and processes LocalStack starts within the LocalStack container. This means that, even in cases where DNS properly redirects the requests both inside the main LocalStack container and any spawned containers, you may still encounter certificate issues for processes not spawned directly by LocalStack. To avoid this issue, use `AWS_ENDPOINT_URL=http://localhost.localstack.cloud:4566` as an alternative.
119+
113120

114121
## Troubleshooting
115122

0 commit comments

Comments
 (0)