0

개요 :내 프로젝트가 존재하지 않는 프로필

  1. 설치 : 내 저장소

    image: node:6.10.0 
    
    pipelines: 
        branches: 
        master: 
         - step: 
          caches: 
          - node 
          script: 
          - npm install 
          - npm run all 
          - ./node_modules/.bin/serverless deploy 
    

    로의 bitbucket 파이프 라인 (bitbucket-pipelines.yml)를 구현하고 무엇을해야하는 것은

    종속성 (npm 설치)

  2. 실행 테스트 (NPM 실행 모두)

  3. 는 배포 AWS (./node_modules/.bin/serverless의 배포)에

1 ~ 2 단계는 잘 작동합니다.

문제 :

3 단계 나에게 오류를 제공,

내 프로젝트가 존재하지 않는 프로필

실험 # 1 :

내가 시도 bitbucket 환경 변수에 액세스 키를 추가하는 방법 (아래 그림 참조).하지만 여전히 작동하지 않습니다.

enter image description here

답변

0

해결!

내 serverless 버전이 v1.24.1이므로 serverless.yml 아래 profile에 주석을 달아야합니다.

provider: 
    name: aws 
    runtime: nodejs6.10 
    # profile: sesam-mock-lpapi 

당신이 profile을 유지하려면, 다음 서버를 사용하지 버전 v1.21.1해야