2

this is my buildspec file:

version: 0.2
env:
  git-credential-helper: yes
phases:
  install:
    runtime-versions:
      nodejs: 10
    commands:
      - npm install
  build:
    commands:
      - npm run build
  post_build:
    commands:
      - echo Build completed on `date`

and in package.json I added:-

dependencies : {
"sharedLib":"git+https://git-codecommit.us-east-1.amazonaws.com/v1/repos/sharedLib#branchname"
} 

I am getting build error in npm install. Any help will be appritiated.

1 Answer 1

2

Through IAM services give a Code commit access to the Role which is assigned to code build.

Then Code build should Run.

Sign up to request clarification or add additional context in comments.

2 Comments

Oh I was missing this thing. Thanks a lot ; It's working for me now.
Glad it helped.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.