EB saved configuration not working for others

0

I have an application in Elastic Beanstalk with a Saved Configuration and when I run the eb cmd[1] to create a new environment, it works as expected. However, when my co-worker tries, he receives this error message:

ERROR: NotFoundError - Elastic Beanstalk can't find a platform version that matches "PHP 8.2 running on 64bit Amazon Linux 2".

Why does it work for me, but not for them? If it was a permission thing, I would have thought they would have run into a Permissions exception. That said, they have AdministratorAccess-AWSElasticBeanstalk so I don't think that's it.

[1]: eb create --cfg CONFIG_NAME -c LABEL -es --version LABEL --envvars CI_ENVIRONMENT=i378,BASEURL=https://LABEL.us-east-1.elasticbeanstalk.com,DB_DSN=MySQLi://X:X@X.us-east-1.rds.amazonaws.com:3306/i378 -k X --single LABEL

This is our saved configuration:

AWSConfigurationTemplateVersion: 1.1.0.0
EnvironmentConfigurationMetadata:
  DateCreated: '1708977569000'
  DateModified: '1713886355415'
  Description: Multidev configuration for X
EnvironmentTier:
  Name: WebServer
  Type: Standard
OptionSettings:
  aws:autoscaling:launchconfiguration:
    EC2KeyName: X
    IamInstanceProfile: aws-elasticbeanstalk-ec2-role
    SecurityGroups: sg-X
  aws:ec2:instances:
    EnableSpot: true
  aws:ec2:vpc:
    AssociatePublicIpAddress: true
    Subnets: subnet-X
    VPCId: vpc-X
  aws:elasticbeanstalk:application:environment:
    FILE_SYSTEM_ID: fs-X
    MOUNT_DIRECTORY: /efs
    MULTIDEV: '1'
    TZ: America/New_York
  aws:elasticbeanstalk:command:
    BatchSize: '30'
    BatchSizeType: Percentage
  aws:elasticbeanstalk:container:php:phpini:
    document_root: /public
  aws:elasticbeanstalk:environment:
    EnvironmentType: SingleInstance
    ServiceRole: aws-elasticbeanstalk-service-role
  aws:elasticbeanstalk:healthreporting:system:
    ConfigDocument:
      CloudWatchMetrics:
        Environment: {}
        Instance: {}
      Rules:
        Environment:
          Application:
            ApplicationRequests4xx:
              Enabled: true
          ELB:
            ELBRequests4xx:
              Enabled: true
      Version: 1
    SystemType: enhanced
Platform:
  PlatformArn: arn:aws:elasticbeanstalk:us-east-1::platform/PHP 8.2 running on 64bit
    Amazon Linux 2023/4.1.1
JPurdy
asked 10 days ago58 views
1 Answer
2

Hello,

The error message that your co-worker received is because the platform version 'PHP 8.2 running on 64bit Amazon Linux 2023/4.1.1' is deprecated.

When a component (operating system [OS], runtime, application server, or web server) of a supported platform branch is marked End of Life (EOL) by its supplier, Elastic Beanstalk marks the platform branch as retired. When a platform branch is marked as retired, Elastic Beanstalk no longer makes it available to new Elastic Beanstalk customers for deployments to new environments.

AWS would never remove access or delete the environment's resources but existing customers running an Elastic Beanstalk environment on a retired platform branch beyond 90 days from the published retirement date should be aware of the risks of doing so. Such environments can end up in an unpredictable situation, because Elastic Beanstalk isn't able to provide security updates, technical support, or hotfixes for retired platform branches due to the supplier marking their component EOL.

According to AWS's document about PHP platform history [2], '4.1.2' version is the latest one for the PHP 8.2 running on 64bit Amazon Linux 2023. So I would like to try again with the latest version, then it will have no problem to create new environments.

Regards, AWS Premium Support

[1] https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/platforms-support-policy.html [2] https://docs.aws.amazon.com/elasticbeanstalk/latest/platforms/platform-history-php.html

profile pictureAWS
SUPPORT ENGINEER
answered 7 days ago
profile pictureAWS
EXPERT
iBehr
reviewed 7 days ago
  • Thanks. I updated the saved config to 4.1.2 and my co-worker is still running into the error message:

    ERROR: NotFoundError - Elastic Beanstalk can't find a platform version that matches "PHP 8.2 running on 64bit Amazon Linux 2".

    It looks like the platform is getting cut off at the 2 and not going the full length of the platform.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions