Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create new environment for a PR #114

Open
eshgovil opened this issue Aug 12, 2024 · 0 comments
Open

Create new environment for a PR #114

eshgovil opened this issue Aug 12, 2024 · 0 comments

Comments

@eshgovil
Copy link

eshgovil commented Aug 12, 2024

I'd like to create a new EB deployment for a PR I just opened. I'm able to pull in the PR number for example to uniquely key this PR, but I cannot create new environments (same application):

      - name: Get pull request number
        run: |
          echo "PR_NUMBER=${{ github.event.pull_request.number }}" >> $GITHUB_ENV
          echo "Pull request number is ${{ env.PR_NUMBER }}"

      - name: Generate deployment package
        run: zip -r deploy.zip . -x '*.git*'

      - name: Deploy to EB
        uses: einaregilsson/beanstalk-deploy@v22
        with:
          aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID }}
          aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
          application_name: backend
          environment_name: backend-dev-${{ env.PR_NUMBER }}
          version_label: ${{ github.SHA }}
          region: us-west-1
          deployment_package: deploy.zip

Leads to

Error: Deployment failed: Error: Status: 400. Code: InvalidParameterValue, Message: No Environment found for EnvironmentName = 'backend-dev-82'.

In pipeline.

Is this possible to support, or even do unless you specify a configuration and environment variables etc?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant