AppRunner + two DB Instances (RDS)

0

Hello, I have some question about configuration App Runner Service. I have two DB instances (eg. Oracle and PostgreSQL) and I wonder if I can configure App Runner so that my Web API connects to the specified base by entering environment variables ([Key][Value]) during configuration? Without interfering with the code itself. I would like to apply one universal Docker image to several App Runner services. EG. App Runner (Key: Oracle, Value: Oracle ConnectionStrings) -> My universal Docker Image -> Oracle DB App Runner (Key: PostgreSQL, Value: PostgreSQL ConnectionStrings) -> My universal Docker Image -> PostgreSQL DB

1 Antwort
1

Hello,

Have you considered using environment variables (under Env)?

Another pattern, though not specifically relating to App Runner, is to have a configuration service / API that returns endpoints dynamically.

Jason_S
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen