Add AWS CLI v2 to Node.js AMI for cloud operations - #2
Merged
Merged
Conversation
Co-authored-by: anevis <44937660+anevis@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update the ami with AWS CLI
Add AWS CLI v2 to Node.js AMI for cloud operations
Sep 26, 2025
anevis
approved these changes
Sep 26, 2025
anevis
marked this pull request as ready for review
September 26, 2025 13:29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR adds AWS CLI v2 installation to the Node.js AMI to enable cloud operations and AWS service integration directly from instances launched with this AMI.
What's Changed
The AMI now includes AWS CLI v2 alongside the existing Node.js development stack, providing users with immediate access to AWS services without requiring manual installation after instance launch.
Technical Changes
scripts/install-nodejs.shusing the official AWS installerunzippackage requirement for AWS CLI installationInstallation Process
The AWS CLI v2 is installed using the recommended method:
This ensures users get the latest stable version with proper system-wide installation and cleanup of temporary files.
Benefits
Validation
This change makes the AMI more valuable for cloud-native Node.js applications while maintaining the existing development-focused feature set.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
checkpoint-api.hashicorp.com/usr/local/bin/packer init aws-ami-nodejs.pkr.hcl(dns block)/usr/local/bin/packer validate aws-ami-nodejs.pkr.hcl(dns block)/usr/local/bin/packer execute --protobuf packer-provisioner-shell(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.