Update python, nodejs, and codebuild versions. Add AL2023 support #75
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue #, if available:
Description of changes:
Update AWS Lambda runtimes to
PYTHON_3_12
, which uses AL2023 (ref)Update CodeBuild image to
AMAZON_LINUX_2_5
, which is also based on AL2023, and supports python3.12 (ref)Update
Cloud9Setup
scripts, since the default Cloud9 platform is now AL2023:v20.12.2
for AL2023.python3
through alternatives breaksyum
anddnf
, unless you explicitly set the system Python 3.9 as the interpreter, so included logic for that step.sam-cli
version to1.115.0
(latest) to supportpython3.12
container image (based on AL2023).Cloud9Setup/pre-requisites.sh
to ensure backward compatibility with AL2 for python3.8 and node, since I'm not sure how many users will select that platform instead, but LMK if we should assume AL2023 in all cases and remove.Bootstrapping on Cloud9 has been tested for both the default Amazon Linux 2023 and Amazon Linux 2 platform on
t3.large
. Note for Amazon Linux 2, I did not change the default pre-loaded node version, since 16.X is EOL. Defaultnode
version through nvm on an Amazon Linux 2 Cloud9 instance below:I can submit a PR for the associated workshop as well once changes are discussed and approved.
Manual e2e tests performed (based on workshop, lab 1 through 5):
serverless-saas-pipeline
workflow completes successfully, and a new environment for the platinum tenant is deployed through CloudFormation successfully (i.e. -stack-<tenantId>
).I believe the client environment files are tracked in this repo intentionally. I did not remove and add them to
.gitignore
. On my local branch, I usedgit update-index
to skip the respectiveclients/{Admin,Application,Landing}/environments/*
files. I also skippedserver/samconfig-boostrap.toml
andclients/Admin/src/aws-exports.ts
. This shouldn't have any effect on the remote branches, but JFYI and for posterity.i.e. -
git update-index --skip-worktree clients/Admin/src/environments/*
Thanks!
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.