Page MenuHomePhabricator

[identity] config for LocalStack
ClosedPublic

Authored by varun on Mar 30 2023, 12:32 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jun 29, 5:53 AM
Unknown Object (File)
Thu, Jun 27, 8:12 AM
Unknown Object (File)
Wed, Jun 26, 8:28 PM
Unknown Object (File)
Wed, Jun 26, 5:46 PM
Unknown Object (File)
Wed, Jun 26, 12:42 PM
Unknown Object (File)
Mon, Jun 24, 5:51 PM
Unknown Object (File)
Sun, Jun 23, 10:48 AM
Unknown Object (File)
Thu, Jun 20, 4:03 AM
Subscribers

Details

Summary

we need to introduce some more config for our DDB client to be able to connect to the LocalStack endpoint.

If the LOCALSTACK_ENDPOINT env var is set, the DDB client will connect to that endpoint instead of the AWS prod endpoint.

Test Plan

called GenerateNonce with the env var set, used AWS cli to confirm that the nonce was added to my LocalStack DDB identity-nonces table
called with the env var unset, and the nonce was added to my actual DDB test table

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

AWS_ENDPOINT -> LOCALSTACK_ENDPOINT

This revision is now accepted and ready to land.Mar 31 2023, 4:17 AM
This revision was automatically updated to reflect the committed changes.

Looks like i got distracted friday

scripts/source_development_defaults.sh
55 ↗(On Diff #24441)

terraform seems to respect this environment variable, I don't think we should change it. Probably just define LOCALSTACK_ENDPOINT in addition to it.