question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`eb config put` fails for PHP platform

See original GitHub issue

Description

fatal error with the eb config put

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

Steps to reproduce

eb init
> choose PHP 7.4 as a platform
echo "Hello World" > index.html
eb create dev-env
eb open
eb status
eb config save prod --cfg initial-configuration
eb config put prod
ERROR: NotFoundError - Elastic Beanstalk can't find a platform version that matches "PHP 7.4 running on 64bit Amazon Linux 2".

Observed result

2020-05-15 17:38:11,958 (DEBUG) cement.core.foundation : laying cement for the 'eb' application
2020-05-15 17:38:11,958 (DEBUG) cement.core.hook : defining hook 'pre_setup'
2020-05-15 17:38:11,958 (DEBUG) cement.core.hook : defining hook 'post_setup'
2020-05-15 17:38:11,959 (DEBUG) cement.core.hook : defining hook 'pre_run'
2020-05-15 17:38:11,959 (DEBUG) cement.core.hook : defining hook 'post_run'
2020-05-15 17:38:11,959 (DEBUG) cement.core.hook : defining hook 'pre_argument_parsing'
2020-05-15 17:38:11,959 (DEBUG) cement.core.hook : defining hook 'post_argument_parsing'
2020-05-15 17:38:11,959 (DEBUG) cement.core.hook : defining hook 'pre_close'
2020-05-15 17:38:11,959 (DEBUG) cement.core.hook : defining hook 'post_close'
2020-05-15 17:38:11,959 (DEBUG) cement.core.hook : defining hook 'signal'
2020-05-15 17:38:11,959 (DEBUG) cement.core.hook : defining hook 'pre_render'
2020-05-15 17:38:11,959 (DEBUG) cement.core.hook : defining hook 'post_render'
2020-05-15 17:38:11,959 (DEBUG) cement.core.hook : registering hook 'add_handler_override_options' from cement.core.foundation into hooks['post_setup']
2020-05-15 17:38:11,959 (DEBUG) cement.core.hook : registering hook 'handler_override' from cement.core.foundation into hooks['post_argument_parsing']
2020-05-15 17:38:11,959 (DEBUG) cement.core.handler : defining handler type 'extension' (IExtension)
2020-05-15 17:38:11,959 (DEBUG) cement.core.handler : defining handler type 'log' (ILog)
2020-05-15 17:38:11,959 (DEBUG) cement.core.handler : defining handler type 'config' (IConfig)
2020-05-15 17:38:11,959 (DEBUG) cement.core.handler : defining handler type 'mail' (IMail)
2020-05-15 17:38:11,959 (DEBUG) cement.core.handler : defining handler type 'plugin' (IPlugin)
2020-05-15 17:38:11,960 (DEBUG) cement.core.handler : defining handler type 'output' (IOutput)
2020-05-15 17:38:11,960 (DEBUG) cement.core.handler : defining handler type 'argument' (IArgument)
2020-05-15 17:38:11,960 (DEBUG) cement.core.handler : defining handler type 'controller' (IController)
2020-05-15 17:38:11,960 (DEBUG) cement.core.handler : defining handler type 'cache' (ICache)
2020-05-15 17:38:11,960 (DEBUG) cement.core.handler : registering handler '<class 'cement.core.extension.CementExtensionHandler'>' into handlers['extension']['cement']
2020-05-15 17:38:11,989 (DEBUG) cement.ext.ext_plugin : plugin config dir /etc/eb/plugins.d does not exist.
2020-05-15 17:38:11,989 (DEBUG) cement.ext.ext_plugin : plugin config dir /Users/stephanemaarek/.eb/plugins.d does not exist.
2020-05-15 17:38:11,997 (DEBUG) ebcli.core.hooks : -- EBCLI Version: 3.18.1
2020-05-15 17:38:11,997 (DEBUG) ebcli.core.hooks : -- Python Version: 3.7.7 (default, Mar 10 2020, 15:43:33)
[Clang 11.0.0 (clang-1100.0.33.17)]
2020-05-15 17:38:11,997 (DEBUG) ebcli.core.fileoperations : Project root found at: /Users/stephanemaarek/junk/eb/HelloWorld/HelloWorld
2020-05-15 17:38:12,000 (DEBUG) ebcli.core.fileoperations : Project root found at: /Users/stephanemaarek/junk/eb/HelloWorld/HelloWorld
2020-05-15 17:38:12,003 (DEBUG) ebcli.core.fileoperations : Project root found at: /Users/stephanemaarek/junk/eb/HelloWorld/HelloWorld
2020-05-15 17:38:12,006 (DEBUG) ebcli.core.fileoperations : Project root found at: /Users/stephanemaarek/junk/eb/HelloWorld/HelloWorld
2020-05-15 17:38:12,008 (DEBUG) ebcli.core.fileoperations : Project root found at: /Users/stephanemaarek/junk/eb/HelloWorld/HelloWorld
2020-05-15 17:38:12,011 (DEBUG) ebcli.core.fileoperations : Project root found at: /Users/stephanemaarek/junk/eb/HelloWorld/HelloWorld
2020-05-15 17:38:12,014 (DEBUG) ebcli.core.fileoperations : Project root found at: /Users/stephanemaarek/junk/eb/HelloWorld/HelloWorld
2020-05-15 17:38:12,017 (DEBUG) ebcli.core.fileoperations : Project root found at: /Users/stephanemaarek/junk/eb/HelloWorld/HelloWorld
2020-05-15 17:38:12,020 (DEBUG) ebcli.core.fileoperations : Project root found at: /Users/stephanemaarek/junk/eb/HelloWorld/HelloWorld
2020-05-15 17:38:12,022 (DEBUG) ebcli.core.fileoperations : Project root found at: /Users/stephanemaarek/junk/eb/HelloWorld/HelloWorld
2020-05-15 17:38:12,025 (DEBUG) ebcli.core.fileoperations : Project root found at: /Users/stephanemaarek/junk/eb/HelloWorld/HelloWorld
2020-05-15 17:38:12,027 (DEBUG) ebcli.lib.elasticbeanstalk : Inside get_available_solution_stacks api wrapper
2020-05-15 17:38:12,028 (DEBUG) ebcli.lib.aws : Creating new Botocore Session
2020-05-15 17:38:12,028 (DEBUG) ebcli.lib.aws : Botocore version: 1.15.47
2020-05-15 17:38:12,039 (DEBUG) ebcli.lib.aws : Creating new Botocore Client for elasticbeanstalk
2020-05-15 17:38:12,127 (DEBUG) ebcli.lib.aws : Successfully created session for elasticbeanstalk
2020-05-15 17:38:12,128 (DEBUG) ebcli.lib.aws : Making api call: (elasticbeanstalk, list_available_solution_stacks) to region: eu-west-1 with args:{}
2020-05-15 17:38:12,625 (DEBUG) ebcli.lib.aws : API call finished, status = 200
2020-05-15 17:38:12,625 (DEBUG) ebcli.lib.aws : Response: {'SolutionStacks': ['64bit Amazon Linux 2018.03 v4.14.3 running Node.js', '64bit Amazon Linux 2018.03 v4.10.1 running Node.js', '64bit Amazon Linux 2018.03 v2.9.6 running PHP 5.4', '64bit Amazon Linux 2018.03 v2.9.6 running PHP 5.5', '64bit Amazon Linux 2018.03 v2.9.6 running PHP 5.6', '64bit Amazon Linux 2018.03 v2.9.6 running PHP 7.0', '64bit Amazon Linux 2018.03 v2.9.6 running PHP 7.1', '64bit Amazon Linux 2018.03 v2.9.6 running PHP 7.2', '64bit Amazon Linux 2018.03 v2.9.6 running PHP 7.3', '64bit Amazon Linux 2018.03 v2.8.14 running PHP 7.2', '64bit Amazon Linux 2018.03 v2.9.10 running Python 3.6', '64bit Amazon Linux 2018.03 v2.9.10 running Python 3.4', '64bit Amazon Linux 2018.03 v2.9.10 running Python', '64bit Amazon Linux 2018.03 v2.9.10 running Python 2.7', '64bit Amazon Linux 2018.03 v2.9.1 running Python 3.6', '64bit Amazon Linux 2018.03 v2.11.6 running Ruby 2.6 (Puma)', '64bit Amazon Linux 2018.03 v2.11.6 running Ruby 2.5 (Puma)', '64bit Amazon Linux 2018.03 v2.11.6 running Ruby 2.4 (Puma)', '64bit Amazon Linux 2018.03 v2.11.6 running Ruby 2.3 (Puma)', '64bit Amazon Linux 2018.03 v2.11.6 running Ruby 2.2 (Puma)', '64bit Amazon Linux 2018.03 v2.11.6 running Ruby 2.1 (Puma)', '64bit Amazon Linux 2018.03 v2.11.6 running Ruby 2.0 (Puma)', '64bit Amazon Linux 2018.03 v2.11.6 running Ruby 2.6 (Passenger Standalone)', '64bit Amazon Linux 2018.03 v2.11.6 running Ruby 2.5 (Passenger Standalone)', '64bit Amazon Linux 2018.03 v2.11.6 running Ruby 2.4 (Passenger Standalone)', '64bit Amazon Linux 2018.03 v2.11.6 running Ruby 2.3 (Passenger Standalone)', '64bit Amazon Linux 2018.03 v2.11.6 running Ruby 2.2 (Passenger Standalone)', '64bit Amazon Linux 2018.03 v2.11.6 running Ruby 2.1 (Passenger Standalone)', '64bit Amazon Linux 2018.03 v2.11.6 running Ruby 2.0 (Passenger Standalone)', '64bit Amazon Linux 2018.03 v2.11.6 running Ruby 1.9.3', '64bit Amazon Linux 2018.03 v3.3.6 running Tomcat 8.5 Java 8', '64bit Amazon Linux 2018.03 v3.3.6 running Tomcat 8 Java 8', '64bit Amazon Linux 2018.03 v3.3.6 running Tomcat 7 Java 7', '64bit Amazon Linux 2018.03 v3.3.6 running Tomcat 7 Java 6', '64bit Windows Server Core 2019 v2.5.5 running IIS 10.0', '64bit Windows Server 2019 v2.5.5 running IIS 10.0', '64bit Windows Server Core 2016 v2.5.5 running IIS 10.0', '64bit Windows Server 2016 v2.5.5 running IIS 10.0', '64bit Windows Server Core 2012 R2 v2.5.5 running IIS 8.5', '64bit Windows Server 2012 R2 v2.5.5 running IIS 8.5', '64bit Windows Server Core 2016 v1.2.0 running IIS 10.0', '64bit Windows Server 2016 v1.2.0 running IIS 10.0', '64bit Windows Server Core 2012 R2 v1.2.0 running IIS 8.5', '64bit Windows Server 2012 R2 v1.2.0 running IIS 8.5', '64bit Windows Server 2012 v1.2.0 running IIS 8', '64bit Windows Server Core 2012 R2 running IIS 8.5', '64bit Windows Server 2012 R2 running IIS 8.5', '64bit Windows Server 2012 running IIS 8', '64bit Amazon Linux 2018.03 v2.15.0 running Docker 19.03.6-ce', '64bit Amazon Linux 2018.03 v2.20.2 running Multi-container Docker 19.03.6-ce (Generic)', '64bit Amazon Linux 2018.03 v2.15.2 running Multi-container Docker 18.06.1-ce (Generic)', '64bit Debian jessie v2.15.0 running Go 1.4 (Preconfigured - Docker)', '64bit Debian jessie v2.15.0 running Go 1.3 (Preconfigured - Docker)', '64bit Debian jessie v2.15.0 running Python 3.4 (Preconfigured - Docker)', '64bit Amazon Linux 2 v3.0.1 running Corretto 11', '64bit Amazon Linux 2 v3.0.1 running Corretto 8', '64bit Amazon Linux 2 v3.0.1 running Ruby 2.7', '64bit Amazon Linux 2 v3.0.1 running Ruby 2.6', '64bit Amazon Linux 2 v3.0.1 running Ruby 2.5', '64bit Amazon Linux 2 v5.0.1 running Node.js 12', '64bit Amazon Linux 2 v5.0.1 running Node.js 10', '64bit Amazon Linux 2 v3.0.1 running Go 1', '64bit Amazon Linux 2 v3.0.1 running Docker', '64bit Amazon Linux 2 v3.0.1 running PHP 7.4', '64bit Amazon Linux 2 v3.0.1 running PHP 7.3', '64bit Amazon Linux 2 v3.0.1 running PHP 7.2', '64bit Amazon Linux 2 v3.0.1 running Python 3.7', '64bit Amazon Linux 2018.03 v2.10.7 running Java 8', '64bit Amazon Linux 2018.03 v2.10.7 running Java 7', '64bit Amazon Linux 2018.03 v2.15.3 running Go 1.14.2', '64bit Amazon Linux 2018.03 v2.6.22 running Packer 1.0.3', '64bit Amazon Linux 2018.03 v2.15.0 running GlassFish 5.0 Java 8 (Preconfigured - Docker)'], 'SolutionStackDetails': [{'SolutionStackName': '64bit Amazon Linux 2018.03 v4.14.3 running Node.js', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v4.10.1 running Node.js', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v2.9.6 running PHP 5.4', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v2.9.6 running PHP 5.5', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v2.9.6 running PHP 5.6', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v2.9.6 running PHP 7.0', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v2.9.6 running PHP 7.1', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v2.9.6 running PHP 7.2', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v2.9.6 running PHP 7.3', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v2.8.14 running PHP 7.2', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v2.9.10 running Python 3.6', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v2.9.10 running Python 3.4', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v2.9.10 running Python', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v2.9.10 running Python 2.7', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v2.9.1 running Python 3.6', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v2.11.6 running Ruby 2.6 (Puma)', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v2.11.6 running Ruby 2.5 (Puma)', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v2.11.6 running Ruby 2.4 (Puma)', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v2.11.6 running Ruby 2.3 (Puma)', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v2.11.6 running Ruby 2.2 (Puma)', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v2.11.6 running Ruby 2.1 (Puma)', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v2.11.6 running Ruby 2.0 (Puma)', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v2.11.6 running Ruby 2.6 (Passenger Standalone)', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v2.11.6 running Ruby 2.5 (Passenger Standalone)', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v2.11.6 running Ruby 2.4 (Passenger Standalone)', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v2.11.6 running Ruby 2.3 (Passenger Standalone)', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v2.11.6 running Ruby 2.2 (Passenger Standalone)', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v2.11.6 running Ruby 2.1 (Passenger Standalone)', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v2.11.6 running Ruby 2.0 (Passenger Standalone)', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v2.11.6 running Ruby 1.9.3', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v3.3.6 running Tomcat 8.5 Java 8', 'PermittedFileTypes': ['war', 'zip']}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v3.3.6 running Tomcat 8 Java 8', 'PermittedFileTypes': ['war', 'zip']}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v3.3.6 running Tomcat 7 Java 7', 'PermittedFileTypes': ['war', 'zip']}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v3.3.6 running Tomcat 7 Java 6', 'PermittedFileTypes': ['war', 'zip']}, {'SolutionStackName': '64bit Windows Server Core 2019 v2.5.5 running IIS 10.0', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Windows Server 2019 v2.5.5 running IIS 10.0', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Windows Server Core 2016 v2.5.5 running IIS 10.0', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Windows Server 2016 v2.5.5 running IIS 10.0', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Windows Server Core 2012 R2 v2.5.5 running IIS 8.5', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Windows Server 2012 R2 v2.5.5 running IIS 8.5', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Windows Server Core 2016 v1.2.0 running IIS 10.0', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Windows Server 2016 v1.2.0 running IIS 10.0', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Windows Server Core 2012 R2 v1.2.0 running IIS 8.5', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Windows Server 2012 R2 v1.2.0 running IIS 8.5', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Windows Server 2012 v1.2.0 running IIS 8', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Windows Server Core 2012 R2 running IIS 8.5', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Windows Server 2012 R2 running IIS 8.5', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Windows Server 2012 running IIS 8', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v2.15.0 running Docker 19.03.6-ce', 'PermittedFileTypes': []}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v2.20.2 running Multi-container Docker 19.03.6-ce (Generic)', 'PermittedFileTypes': ['zip', 'json']}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v2.15.2 running Multi-container Docker 18.06.1-ce (Generic)', 'PermittedFileTypes': ['zip', 'json']}, {'SolutionStackName': '64bit Debian jessie v2.15.0 running Go 1.4 (Preconfigured - Docker)', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Debian jessie v2.15.0 running Go 1.3 (Preconfigured - Docker)', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Debian jessie v2.15.0 running Python 3.4 (Preconfigured - Docker)', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2 v3.0.1 running Corretto 11', 'PermittedFileTypes': ['jar', 'zip']}, {'SolutionStackName': '64bit Amazon Linux 2 v3.0.1 running Corretto 8', 'PermittedFileTypes': ['jar', 'zip']}, {'SolutionStackName': '64bit Amazon Linux 2 v3.0.1 running Ruby 2.7', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2 v3.0.1 running Ruby 2.6', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2 v3.0.1 running Ruby 2.5', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2 v5.0.1 running Node.js 12', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2 v5.0.1 running Node.js 10', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2 v3.0.1 running Go 1', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2 v3.0.1 running Docker', 'PermittedFileTypes': []}, {'SolutionStackName': '64bit Amazon Linux 2 v3.0.1 running PHP 7.4', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2 v3.0.1 running PHP 7.3', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2 v3.0.1 running PHP 7.2', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2 v3.0.1 running Python 3.7', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v2.10.7 running Java 8', 'PermittedFileTypes': ['jar', 'zip']}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v2.10.7 running Java 7', 'PermittedFileTypes': ['jar', 'zip']}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v2.15.3 running Go 1.14.2', 'PermittedFileTypes': ['zip']}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v2.6.22 running Packer 1.0.3', 'PermittedFileTypes': []}, {'SolutionStackName': '64bit Amazon Linux 2018.03 v2.15.0 running GlassFish 5.0 Java 8 (Preconfigured - Docker)', 'PermittedFileTypes': ['zip']}], 'ResponseMetadata': {'RequestId': '8c1c568b-9b16-40ef-ac8e-39e976b2458a', 'HTTPStatusCode': 200, 'date': 'Fri, 15 May 2020 16:38:12 GMT', 'RetryAttempts': 0}}
2020-05-15 17:38:12,626 (DEBUG) ebcli.lib.elasticbeanstalk : Solution Stack result size = 72
2020-05-15 17:38:12,641 (DEBUG) ebcli.lib.elasticbeanstalk : Inside list_platform_versions api wrapper
2020-05-15 17:38:12,641 (DEBUG) ebcli.lib.aws : Making api call: (elasticbeanstalk, list_platform_versions) to region: eu-west-1 with args:{'Filters': [{'Type': 'PlatformOwner', 'Operator': '=', 'Values': ['self']}]}
2020-05-15 17:38:12,734 (DEBUG) ebcli.lib.aws : API call finished, status = 200
2020-05-15 17:38:12,735 (DEBUG) ebcli.lib.aws : Response: {'PlatformSummaryList': [], 'ResponseMetadata': {'RequestId': 'ff6f5635-3638-4be7-a4d7-c132570e9c29', 'HTTPStatusCode': 200, 'date': 'Fri, 15 May 2020 16:38:11 GMT', 'RetryAttempts': 0}}
2020-05-15 17:38:12,742 (INFO) eb : Traceback (most recent call last):
  File "/Users/stephanemaarek/Library/Python/3.7/lib/python/site-packages/ebcli/core/ebrun.py", line 62, in run_app
    app.run()
  File "/Users/stephanemaarek/Library/Python/3.7/lib/python/site-packages/cement/core/foundation.py", line 797, in run
    return_val = self.controller._dispatch()
  File "/Users/stephanemaarek/Library/Python/3.7/lib/python/site-packages/cement/core/controller.py", line 472, in _dispatch
    return func()
  File "/Users/stephanemaarek/Library/Python/3.7/lib/python/site-packages/cement/core/controller.py", line 478, in _dispatch
    return func()
  File "/Users/stephanemaarek/Library/Python/3.7/lib/python/site-packages/ebcli/controllers/config.py", line 93, in put
    platform = solution_stack_ops.find_solution_stack_from_string(platform)
  File "/Users/stephanemaarek/Library/Python/3.7/lib/python/site-packages/ebcli/operations/solution_stack_ops.py", line 103, in find_solution_stack_from_string
    raise NotFoundError(alerts['platform.invalidstring'].format(solution_string))
ebcli.objects.exceptions.NotFoundError: Elastic Beanstalk can't find a platform version that matches "PHP 7.4 running on 64bit Amazon Linux 2".

Expected result

The command to complete

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

$ eb --version
EB CLI 3.18.1 (Python 3.7.7)
$ aws --version
aws-cli/2.0.10 Python/3.7.4 Darwin/19.4.0 botocore/2.0.0dev14

Important notes:

In my prod.cfg.yml:

Platform:
  PlatformArn: arn:aws:elasticbeanstalk:eu-west-1::platform/PHP 7.4 running on 64bit Amazon Linux 2/3.0.1

In the command output:

Elastic Beanstalk can't find a platform version that matches "PHP 7.4 running on 64bit Amazon Linux 2

I think the issue is due to some parsing… it seems the 3.0.1 is missing

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:7
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

9reactions
halcarletoncommented, May 15, 2020

Hi @simplesteph, thanks for reporting this. I have identified the bug and we will work on getting a fix implemented. In the meantime here is a workaround for you:

$ eb init --platform "arn:aws:elasticbeanstalk:eu-west-1::platform/PHP 7.4 running on 64bit Amazon Linux 2/3.0.1"

This will update default_platform in your .elasticbeanstalk/config.yml file to that specific platform version arn. The bug is in the platform lookup logic around that value, so if you explicitly provide an arn it can skip that portion of the logic.

1reaction
AbderrahmenISSAcommented, Jun 24, 2020

The command : $ eb init --platform "arn:aws:elasticbeanstalk:eu-west-1::platform/PHP 7.4 running on 64bit Amazon Linux 2/3.0.1" didn’t pass. I have the following error: ERROR: InvalidParameterValueError - Platform 'arn:aws:elasticbeanstalk:eu-west-1::platform/PHP 7.4 running on 64bit Amazon Linux 2/3.0.1' does not exist. So I manually changed the file .elasticbeanstalk/config.yml with the arn like this : default_platform: arn:aws:elasticbeanstalk:eu-west-1::platform/PHP 7.4 running on 64bit Amazon Linux 2/3.0.1 and it’s OK for now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

eb config - AWS Elastic Beanstalk
Description. Manages the active configuration settings and saved configurations of your environment. You can use this command to upload, download, ...
Read more >
AWS Elasticbeanstalk overriding Nginx config using .platform ...
I created .platform/etc/nginx/conf.d/elasticbeanstalk/php.conf file right inside the project's root folder. Then I put in the configuration ...
Read more >
Setting configuration options during environment creation
Set options during Amazon Elastic Beanstalk environment creation with options ... of a platform such as PHP or Tomcat, or it can be...
Read more >
Things to keep in mind while deploying to Elastic Beanstalk
Elastic Beanstalk is a PaaS (Platform as a service) solution from AWS. It can deploy Java, Python, Golang, NodeJS, Docker applications.
Read more >
Deploying Laravel Apps to AWS Elastic Beanstalk
You can add as many as 50 tags. From the dropdown list for Platform, select PHP. Under the Application Code section, select Upload...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found