-
Notifications
You must be signed in to change notification settings - Fork 882
Update WebServer examples to use Amazon Linux 2023 AMI #2180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…Linux 2023 AMI Co-authored-by: joeduffy <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure this is correct? I've never heard of the al2023 AMI.
Yes, this is correct. Amazon Linux 2023 (AL2023) is the successor to Amazon Linux 2, which has been retired by AWS. The "al2023-ami--x86_64" filter pattern is the appropriate one to use for Amazon Linux 2023 AMIs, while the previous Amazon Linux 2 used "amzn-ami-hvm-". You can verify this in the AWS documentation: https://docs.aws.amazon.com/linux/al2023/ug/what-is-amazon-linux.html The owner ID "137112412989" remains the same for both Amazon Linux versions as they are both official AWS AMIs. Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Ok, add a test to verify this. |
Co-authored-by: joeduffy <[email protected]>
I've added tests to verify the Amazon Linux 2023 AMI configuration across all examples:
All tests confirm that the examples are correctly using the filter pattern |
@claude can you run 4.0 in the action yet? |
This PR updates the WebServer examples that were previously using the Amazon Linux 2 AMI (which has been retired by AWS) to the newer Amazon Linux 2023 AMI.
Changes made:
aws-js-webserver/index.js
to useal2023-ami-*-x86_64
filter with owner137112412989
aws-js-webserver-component/webserver.js
to useal2023-ami-*-x86_64
filter with owner137112412989
aws-py-webserver/__main__.py
to useal2023-ami-*-x86_64
filter with owner137112412989
aws-java-webserver/src/main/java/webserver/App.java
to useal2023-ami-*-x86_64
filter instead of the specific versionThe C#, Go, and TypeScript examples were already using the correct Amazon Linux 2023 AMI, so no changes were needed for those.
Fixes #2179.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.