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회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠