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

Error: You must first run "eb init". #8

Open
jadbox opened this issue Jun 10, 2021 · 3 comments
Open

Error: You must first run "eb init". #8

jadbox opened this issue Jun 10, 2021 · 3 comments

Comments

@jadbox
Copy link

jadbox commented Jun 10, 2021

I get this error when I try to deploy, and I do have my .elasticbeanstalk/config.yml committed into the repo.

@ilmoi
Copy link

ilmoi commented Jun 11, 2021

I'm sure you checked this, but just in case make sure that your .gitignore is not preventting .elasticbeanstalk/config.yml from being uploaded. EB automatically adds stuff to your gitignore which prevents upload. That was the problem for me.

@pllearns
Copy link

Interesting that we would need to .gitignore the config, or worry about the config when this should include eb init. We are already bringing in the secrets into the action. Just curious as to why we couldn't include the eb init script in the action, maybe in commands with deploy?

@tamsanh
Copy link

tamsanh commented Dec 12, 2021

Also make sure that you use actions/checkout@v2, so that the actual .elasticbeanstalk/config.yml file can be read from the commit.

Ex:

jobs:
  update_environment:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: hmanzur/[email protected]
        with:
          command: 'setenv BUNDLE_URL=${{ secrets.BUNDLE_URL }}'
        env:
          AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
          AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
          AWS_DEFAULT_REGION: "us-west-2"

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

4 participants