AWS CodeBuild: Building nodejs application and pushing built artifacts to S3

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 พ.ย. 2024

ความคิดเห็น • 9

  • @pvpkidstoysreview6483
    @pvpkidstoysreview6483 5 หลายเดือนก่อน

    Hi Need your assistance in learning aws devops

  • @balasuriya7452
    @balasuriya7452 ปีที่แล้ว

    @kavithasureshkumar2002
    Hi, I am using a docker image to deploy in ecs successfully pushed image to ecr
    while deploying i am facing a error imagedefinition.json not found.

  • @arslanakmal5497
    @arslanakmal5497 ปีที่แล้ว

    Hi hope you are well i am doing all the stuff same as you are doing but my artifacts is not stored in s3

    • @kavithasureshkumar2002
      @kavithasureshkumar2002  ปีที่แล้ว

      Hi, Check whether the user has necessary permissions to write to S3 bucket

    • @arslanakmal5497
      @arslanakmal5497 ปีที่แล้ว

      @@kavithasureshkumar2002 while i was creating a role and then i associate s3FullAccess to it but it doesnot work

    • @kavithasureshkumar2002
      @kavithasureshkumar2002  ปีที่แล้ว

      Can you share buildspec.yaml file

    • @arslanakmal5497
      @arslanakmal5497 ปีที่แล้ว

      @@kavithasureshkumar2002 thanks for your reply i found the error.I refactor the buildspec.yaml file

    • @nakul--
      @nakul-- ปีที่แล้ว +3

      Hey, i went through the same problem! You have to update the location in your buildspec code :
      artifacts:
      files:
      - /var/www/html/index.html
      base-directory: /var/www/html/
      discard-paths: yes
      # Specify the name of your artifact
      name: MyArtifactName
      location: devopsnakulproject , Here the location should be your bucket name! I hope this helps.