Update WebServer examples to use Amazon Linux 2023 AMI#2180
Update WebServer examples to use Amazon Linux 2023 AMI#2180
Conversation
…Linux 2023 AMI Co-authored-by: joeduffy <3953235+joeduffy@users.noreply.github.com>
joeduffy
left a comment
There was a problem hiding this comment.
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 <3953235+joeduffy@users.noreply.github.com>
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.jsto useal2023-ami-*-x86_64filter with owner137112412989aws-js-webserver-component/webserver.jsto useal2023-ami-*-x86_64filter with owner137112412989aws-py-webserver/__main__.pyto useal2023-ami-*-x86_64filter with owner137112412989aws-java-webserver/src/main/java/webserver/App.javato useal2023-ami-*-x86_64filter 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.