CodePipeline

Resources

7 thoughts on “CodePipeline”

  1. thanhphatle21

    Pardon me, I have 1 error while I start to build in progress in CodeBuild. It means “COMMAND_EXECUTION_ERROR Message: Error while executing command: pnpm build. Reason: exit status 1”. This is my link github “https://github.com/phatle21/shoppy-backend”.

    1. What role have you assigned to your CodePipeline? Can you try editing it and manually adding this permission?

      That error means the IAM role used by your **AWS CodePipeline** doesn’t have permission to create a new **Elastic Beanstalk Application Version**, which is typically required when you’re deploying your app using Elastic Beanstalk.

      ### ✅ Fix: Add `elasticbeanstalk:CreateApplicationVersion` to the IAM Role

      1. Go to the **IAM Console**.
      2. Find the **IAM role** associated with your CodePipeline (commonly named like `CodePipelineRole-XYZ`).
      3. Attach or edit a policy with the following permissions:

      “`json
      {
      “Effect”: “Allow”,
      “Action”: [
      “elasticbeanstalk:CreateApplicationVersion”,
      “elasticbeanstalk:DescribeApplicationVersions”,
      “elasticbeanstalk:UpdateEnvironment”,
      “s3:GetObject”,
      “s3:GetObjectVersion”
      ],
      “Resource”: “*”
      }
      “`

      You can restrict the `”Resource”` if you want tighter security, but `”*”` works fine if you’re just trying to unblock things quickly.

  2. Hi, could you please help me troubleshoot this issue?

    I’m getting the following error in AWS Elastic Beanstalk:

    “Following services are not running: web.”

    And in the browser I receive:
    502 Bad Gateway — nginx

    I’ve tried multiple Procfile configurations, including the default one and the one suggested by ChatGPT, but the problem persists.

    Here’s the GitHub repo for reference:

    👉 https://github.com/mishaRozdorozhniuk/Next-Nest-shop-backend

    Any insights or suggestions would be really appreciated. Thanks in advance!

  3. Hi, could you please help me troubleshoot this issue?

    I’m getting the following error in AWS Elastic Beanstalk:

    “Following services are not running: web.”

    And in the browser I receive:
    502 Bad Gateway — nginx

    I’ve tried multiple Procfile configurations, including the default one and the one suggested by ChatGPT, but the problem persists.

    Here’s the GitHub repo for reference:

    👉 https://github.com/mishaRozdorozhniuk/Next-Nest-shop-backend

    Any insights or suggestions would be really appreciated. Thanks in advance!

Leave a Reply