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回答
1
承認された回答

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
回答済み 1年前
profile picture
エキスパート
レビュー済み 2ヶ月前
  • I think that it's not properly correct. I try to run aws secretsmanager get-secret-value .... as pre-build command without success

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ