Hi all, I am trying to run the docker image on EC...
# pact-broker
e
Hi all, I am trying to run the docker image on ECS and configure it to access RDS using IAM authentication. I haven't yet found where to tweak the configuration to make it work. Have you done it before?
m
I don’t believe we have any examples
I believe we support it for PactFlow on-prem customers, i’ll see if I can dig up any work on that that’s relevant
y
What exactly isn’t working, and how far have you got so far? You provide the app a connection string to your db. access controls will depend on how you have setup perms / vpc’s / security groups etc
m
The issue is that the default postgres gem we use (Sequel) needs to be overridden, as it expects a username/password. IAM Auth is slighly different - you need to dynamically fetch credentials and continually rotate them You need to use something like the
aws-sdk-rds/customizations/auth_token_generator
package which overrides the authentication to fetch the credentials dynamically (via IAM), rotates them as they expire etc. If you could please raise a feature request on the pact_broker repo, that would help create some visibility
e
ok, thank you all.
I will finish my discovery and raise a ticket with more details
🙏 1
I haven't got far enough. I started yesterday and I couldn't find a clear way to progress
👍 1