mup-aws-beanstalk icon indicating copy to clipboard operation
mup-aws-beanstalk copied to clipboard

Deployment fails and defaults to Amazon Linux 2023 instead of Amazon Linux 2

Open eggboy0 opened this issue 1 year ago • 4 comments

There are issues with deploying to Amazon Linux 2023 which mup-aws-beanstalk defaults to since Amazon Linux 2023's inception. How do we make it choose Amazon Linux 2 or does this plugin require a patch update to resolve the issue?

eggboy0 avatar Aug 14 '23 07:08 eggboy0

What are the problems with Amazon Linux 2023?

I'm guessing it is related to this code which selects the platform: https://github.com/zodern/mup-aws-beanstalk/blob/e5cb4137df4fd98f9ab032df035f5c671e895fe2/src/utils.js#L168-L213

zodern avatar Aug 14 '23 14:08 zodern

I believe we're encountering this as well now. We had our test server deactivated for a short time and when I went to deploy now it picked this new version of the platform as well and fails.

Would it be possible to specify the platform branch somewhere in the config ?

Edit: Here's the changelog. Nothing jumps out at me. I'm seeing the health check fail.

lynchem avatar Aug 14 '23 14:08 lynchem

What are the problems with Amazon Linux 2023?

I'm guessing it is related to this code which selects the platform:

https://github.com/zodern/mup-aws-beanstalk/blob/e5cb4137df4fd98f9ab032df035f5c671e895fe2/src/utils.js#L168-L213

Yeah that's right. It seems like it was just picking the first one from the list.

I unfortunately didn't save the logs when the issue happened - I already deleted the environment.

As lynchem suggested, specifying the platform branch in the config would be nice.

eggboy0 avatar Aug 15 '23 01:08 eggboy0

We since got ours all running fine. The new platform has a larger memory footprint so in one case we had to go to the next instance size to fix it.

lynchem avatar Aug 28 '23 11:08 lynchem