{
  "AWSTemplateFormatVersion": "2010-09-09",
  "Description": "Elastic Beanstalk Application",

  "Parameters": {
    "ApplicationName": {
      "Type": "String",
      "Description": "Application name"
    }
  },

  "Resources": {
    "EBApplication": {
      "Type": "AWS::ElasticBeanstalk::Application",
      "Properties": {
        "ApplicationName": {"Ref": "ApplicationName"},
        "Description": "Elastic Beanstalk Application"
      }
    }
  }
}

{
  "AWSTemplateFormatVersion": "2010-09-09",
  "Description": "Elastic Beanstalk Application",

  "Parameters": {
    "ApplicationName": {
      "Type": "String",
      "Description": "Application name"
    }
  },

  "Resources": {
    "EBApplication": {
      "Type": "AWS::ElasticBeanstalk::Application",
      "Properties": {
        "ApplicationName": {"Ref": "ApplicationName"},
        "Description": "Elastic Beanstalk Application"
      }
    }
  },

  "Outputs": {
    "Name": {
      "Description": "Application name",
      "Value": {"Ref": "ApplicationName"}
    }
  }
}

Add application name to EB app cloudformation template outputs
Add application name to EB app cloudformation template outputs
