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

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则