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
Our regular Ecto repo is configured like this (it fetches credentials from AWS based on some configured role):
# in runtime.exscredentials=System.get_env("RDS_DB_IAM_ROLE_CREDENTIALS")config:demo,Demo.Repo,configure: {Demo.Repo,:configure_with_auth_token,[credentials]}# in repo.exdefmoduleDemo.RepodouseEcto.Repo,otp_app: :demo,adapter: Ecto.Adapters.Postgres# Helper function to configure the connection with dynamically generated auth token for an IAM roledefconfigure_with_auth_token(opts,credentials)doaws_credentials=:aws_credentials.get_credentials()# connects to AWS for token# rest of code omitted for brevityauth_token=rds_auth_token(aws_credentials)Keyword.put(opts,:password,auth_token)endend
How can we do the same for event store?
Ideally it would be the same / similar mfa approach, but that does not work.
Thank you! 🙇🏼
The text was updated successfully, but these errors were encountered:
Hi,
Our regular Ecto repo is configured like this (it fetches credentials from AWS based on some configured role):
How can we do the same for event store?
Ideally it would be the same / similar mfa approach, but that does not work.
Thank you! 🙇🏼
The text was updated successfully, but these errors were encountered: