AWS Elastic Beanstalk EOL for Amazon Linux AMI 1

I would like to check how i going to restore my app code into new EC2 instance with supported platform.

Current issue My Website admin panel unable load in the AWS elastic beanstalk after restart the ec2 instance cause the environment was EOL for Amazon linux AMI 1.