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 Answer
1
Accepted Answer

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
answered a year ago
profile picture
EXPERT
reviewed 2 months ago
  • I think that it's not properly correct. I try to run aws secretsmanager get-secret-value .... as pre-build command without success

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions