I have the following .elasticbeanstalk/config.yml
branch-defaults:
default:
environment: MyDev-env
deploy:
artifact: target/App-Sprint9-SNAPSHOT-bin.zip
environment-defaults:
MyDev-env:
branch: null
repository: null
global:
application_name: App
default_ec2_keyname: app
default_platform: arn:aws:elasticbeanstalk:us-east-9::platform/Tomcat 8 with Java
8 running on 64bit Amazon Linux/3.1.0
default_region: us-east-9
include_git_submodules: true
instance_profile: null
platform_name: null
platform_version: null
profile: null
sc: git
workspace_type: Application
When I try to deploy with eb deploy -l XXX
, it complains:
ERROR: This branch does not have a default environment. You must either specify an environment by typing "eb deploy my-env-name" or set a default environment by typing "eb use my-env-name".
But I do have a default environment! It's specified in the very first 3 lines! Why doesn't it use it? If I use eb use environment
then it just adds another row under branch-defaults:
with the current branch, and I have to do the same thing all over again with a new branch.
EB CLI 3.14.11 (Python 3.7.1) and EB CLI 3.15.3 (Python 3.7.3)