title: AWS.Elastickbeanstalk Update 'No Environment found for EnvironmentName'
body: <p>I am trying to update/upload my NodeJs application that is hosted on AWS Elastic Beanstalk. </p>
  
  <p>I am using a command:</p>
  
  <pre><code>&gt; aws elasticbeanstalk update-environment --application-name  my-app --environment-name  my-env --version-label ver1
  </code></pre>
  
  <p>And get en error:</p>
  
  <blockquote>
    <p>An error occurred (InvalidParameterValue) when calling the UpdateEnvironment operation: No Environment found for EnvironmentName = 'my-env'</p>
  </blockquote>
  
  <p>However, i can see that <strong>my-env</strong> environment exists when I login to AWS console or run <strong>eb list</strong> from command line.</p>
  
  <p>This is my config.yml file:</p>
  
  <pre><code>branch-defaults:
   master:
     environment: my-env
  environment-defaults:
    my-env:
      branch: null
      repository: null
  global:
    application_name: my-app
    default_ec2_keyname: null
    default_platform: arn:aws:elasticbeanstalk:us-east-1::platform/Docker running on
    64bit Amazon Linux/2.12.17
    default_region: us-east-1
    include_git_submodules: true
    instance_profile: null
    platform_name: null
    platform_version: null
    profile: eb-cli
    sc: git
    workspace_type: Application
  </code></pre>
  
  <p>Any guidance is greatly appreciated.</p>