aws apprunner env variables in building phase are not visibile

0

I've this config file

version: 1.0
runtime: nodejs18

build:
  commands:
    pre-build:
      - npm install
    build:
      - npm run build
    post-build:
      - npm test
  env:
    - name: AWS_COGNITO_REGION
      value: "xx-zzzz-x"
    - name: AWS_COGNITO_USERPOOLID
      value: "xx-zzzz-y_yyyyyy"
.........

Both of env variables are needed during the post-build step but I got several errors because

env-var: "AWS_COGNITO_REGION" is a required variable, but it was not set

I've been struggling with this issue for days without any solution. Any suggestion? Could you help me?

scne
已提问 4 个月前120 查看次数
没有答案

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

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

回答问题的准则

相关内容