Multiple deployment routes fail with error

I have exactly two deployment routes (GitHub Pages and AWS CodeDeploy) in my circle.yml file and I am getting the following error since I added AWS CodeDeploy:

deployment.production should be a either a deploy section with commands, a Heroku deploy section or a CodeDeploy deploy section

The circle.yml looks like this:

machine:
node:
version: 5.9.1

checkout:
  post:
    - git config user.email "test@example.com"
    - git config user.name "Circle CI AutoDeploy"

dependencies:
  pre:
    - bundle install

general:
  build_dir: build
  artifacts:
    - "log"
  branches:
    ignore:
      - /issue.*/

deployment:
  staging:
    branch: dev
    owner: franz-josef-kaiser
    commands:
      - ./scripts/deploy.sh
  production:
    branch: master
    owner: franz-josef-kaiser
    codedeploy:
      myapp:
        application_route: /build
        revision_location:
          revision_type: S3
          s3_location:
            bucket: my-bucket
            key_pattern: app/myapp-{SHORT_COMMIT}-{BUILD_NUM}
        region: eu-central-1
        deployment_group: my-production-instances
        deployment_config: CodeDeployDefault.AllAtOnce

test:
  override:
    - echo "Circle CI is only used for deployment at the moment"