xp-forge / lambda

AWS Lambda for the XP Framework
3 stars 0 forks source link

Upgrade to Amazon Linux 2 #15

Closed thekid closed 2 years ago

thekid commented 2 years ago

This pull request:

thekid commented 2 years ago

Instead of buildung PHP ourselves, we might also be able to use PHP 8.0 from amazon-linux-extras:

bash-4.2# amazon-linux-extras | grep php
  _  php7.2                   available    \
  _  lamp-mariadb10.2-php7.2  available    \
  _  php7.3                   available    \
  _  php7.4                   available    [ =stable ]
 51  php8.0=latest            enabled      [ =stable ]

See https://greggborodaty.com/amazon-linux-2-upgrading-from-php-7-2-to-php-7-4/

thekid commented 2 years ago

Released in https://github.com/xp-forge/lambda/releases/tag/v4.0.0

thekid commented 2 years ago

Images will not be rebuilt by the xp lambda subcommands when upgrading from version 3 to version 4. To trigger a rebuild, use the -b command line switch.

$ xp lambda runtime -b
# ...