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 Respuesta
1
Respuesta aceptada

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
respondido hace un año
profile picture
EXPERTO
revisado hace 2 meses
  • I think that it's not properly correct. I try to run aws secretsmanager get-secret-value .... as pre-build command without success

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas