Is it possible to access secrets manager in build phase in app runner?

0

I know app runner can access secrets manager, explain in this article -> https://aws.amazon.com/about-aws/whats-new/2023/01/aws-app-runner-secrets-configuration-aws-secrets-systems-manager/

I already implemented it, and it works just in run phase. In build phase, I cannot access secrets manager. I'm using App Runner configuration file (https://docs.aws.amazon.com/apprunner/latest/dg/config-file-examples.html)

any insight related this?

Thank you.

  • I've the same problem! Did you find any solution?

1 Antwort
1
Akzeptierte Antwort

Hi, If you are using apprunner.yaml based service then you can directly using AWS CLI part of prebuild phase to get these secrets, set them as environment variables and use it in the build phase.

AWS
Hari
beantwortet vor einem Jahr
profile picture
EXPERTE
überprüft vor 2 Monaten
  • I think that it's not properly correct. I try to run aws secretsmanager get-secret-value .... as pre-build command without success

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