Amazon Web Services: AWS Beanstalk ebp create displays an error: ami_name must be specified when creating a custom platform

Here is the Beanstalk error log:

13:51:24
# Logfile created on 2018-11-27 13:51:24 +0000 by logger.rb / 47272

13:51:26
I, [2018-11-27T13:51:26.154162+0000#27003] INFO - build.rb: Creating the CloudWatch & # 39; / aws / elasticbeanstalk / platform / eb-ro & # 39; registry group.

13:51:26 I [2018-11-27T13:51:26.394957+0000#27003] INFO - build.rb: downloading EB bootstrap script https://s3-eu-west-1.amazonaws.com/elasticbeanstalk-env-resources-eu-west-1/stalks/eb_packer_4.0.1.200213.0/skeleton/ lib / bootstrap / rhel7 / eb-user-data ...

13:51:26
I, [2018-11-27T13:51:26.418223+0000#27003] INFO - build.rb: downloading EB bootstrap script https://s3-eu-west-1.amazonaws.com/elasticbeanstalk-env-resources-eu-west-1/stalks/eb_packer_4.0.1.200213.0/skeleton/ lib /bootstrap/rhel7/eb-bootstrap.sh ...

13:51:26
I, [2018-11-27T13:51:26.812603+0000#27003] INFO - build.rb: Injecting awseb-bootstrap / eb-bootstrap.sh script into the Packer template ...

13:51:26
I, [2018-11-27T13:51:26.812823+0000#27003] INFO - build.rb: Invoking & # 39; packer build & # 39; ...

13:51:26
I, [2018-11-27T13:51:26.900874+0000#27003] INFO - Packer: 1543326686, ui, error, 2 error (s) occurred:  n  n * must specify the name_ami  n * the name_ami must have a length of between 3 and 128 characters

13:51:26
I, [2018-11-27T13:51:26.903480+0000#27003] INFO - build.rb: & # 39; builder build & # 39; finished.

13:51:26
MY, [2018-11-27T13:51:26.903524+0000#27003] ERROR - build.rb: Packer failed with error: 2 error (s) occurred:

13:51:26
* ami_name must be specified

13:51:26
* ami_name must have between 3 and 128 characters & # 39;

13:51:26
MY, [2018-11-27T13:51:26.903602+0000#27003] ERROR - build.rb: & compilation packer & # 39; failed, the compilation record has been saved in & # 39; / var / log / packer-builder / eb-ro: 1.0.25-builder.log & # 39;

My custom_platform.json:

{
"variables": {
"platform_name": "{{env` AWS_EB_PLATFORM_NAME`}}",
"platform_version": "{{env` AWS_EB_PLATFORM_VERSION`}}",
"platform_arn": "{{env` AWS_EB_PLATFORM_ARN`}}"
}
"builders": [
    {
      "type": "amazon-ebs",
      "name": "HVM AMI builder",
      "region": "eu-west-1",
      "source_ami": "ami-d8d502a1",
      "instance_type": "t2.micro",
      "ssh_username": "ec2-user",
      "ssh_pty": "true",
      "ami_name": "Beanstalk Custom Platform (built on {{isotime "20060102150405" }})",
      "tags": {
        "eb_platform_name": "{{user `platform_name`}}",
        "eb_platform_version": "{{user `platform_version`}}",
        "eb_platform_arn": "{{user `platform_arn`}}"
      }
    }
  ],