Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

aws_eb_env does not work correctly with multiple environments in config.yml #1369

Open
lordjavac opened this issue Oct 1, 2019 · 0 comments

Comments

@lordjavac
Copy link

Describe Your Issue

When multiple branches have environment defined in .elasticbeanstalk/config.yml the result is a multiline string for the aws_eb_env.

Have you tried to debug or fix it?

This would be easy to fix by changing the manner in which we get the environment, but it would introduce a dependency on the eb command-line tool.

eb list | grep '^\*' | awk '{print $2}' 

This yields the current environment, if there is one. It also will not yield one if there isn't one for the current branch.

Environment Information

  • ZSH Version: zsh 5.3 (x86_64-apple-darwin18.0)
  • Using Antigen.
  • P9k installed via antigen.
  • on master branch as of 2019-10-01 15:39:40 PDT.
  • Using Terminal.app on macOS and terminal panel in VS Code.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant