@@ -137,18 +137,32 @@ sudo yum -q install -y session-manager-plugin.rpm
137137session-manager-plugin
138138rm session-manager-plugin.rpm
139139
140- echo " Installing Q Cli ..."
141- curl --proto ' =https' --tlsv1.2 -sSf " https://desktop-release.codewhisperer.us-east-1.amazonaws.com/latest/q-x86_64-linux.zip" -o /home/ec2-user/q.zip
142- unzip /home/ec2-user/q.zip -d /home/ec2-user/
143- chmod +x /home/ec2-user/q/install.sh
144- sudo Q_INSTALL_GLOBAL=1 /home/ec2-user/q/install.sh
145-
146- echo " Fixing bash-preexec errors in Amazon Q shell integration..."
147- # Run the fix script from the same directory
148- bash " $( dirname " $0 " ) /fix-bash-preexec.sh"
149-
150- echo " Installing Spring CLI"
151- curl -L https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-cli/3.5.0/spring-boot-cli-3.5.0-bin.zip -o /home/ec2-user/spring-boot-cli-3.5.0-bin.zip && unzip /home/ec2-user/spring-boot-cli-3.5.0-bin.zip -d /home/ec2-user
140+ # echo "Installing Q Cli ..."
141+ # curl --proto '=https' --tlsv1.2 -sSf "https://desktop-release.codewhisperer.us-east-1.amazonaws.com/latest/q-x86_64-linux.zip" -o /home/ec2-user/q.zip
142+ # unzip /home/ec2-user/q.zip -d /home/ec2-user/
143+ # chmod +x /home/ec2-user/q/install.sh
144+ # sudo Q_INSTALL_GLOBAL=1 /home/ec2-user/q/install.sh
145+
146+ # echo "Fixing bash-preexec errors in Amazon Q shell integration..."
147+ # # Run the fix script from the same directory
148+ # bash "$(dirname "$0")/fix-bash-preexec.sh"
149+
150+ echo " Installing Kiro CLI (optional) ..."
151+ if curl -fsSL https://cli.kiro.dev/install | bash 2>&1 | tee /tmp/kiro-install.log; then
152+ echo " alias kc='AMAZON_Q_SIGV4=1 kiro-cli'" | sudo tee -a /etc/profile.d/workshop.sh
153+ echo " Kiro CLI installed successfully"
154+ else
155+ echo " ⚠️ Kiro CLI installation failed (optional component)"
156+ echo " Installation log saved to /tmp/kiro-install.log"
157+ fi || true
158+
159+ echo " Installing Spring CLI (optional) ..."
160+ if curl -L https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-cli/3.5.0/spring-boot-cli-3.5.0-bin.zip -o /home/ec2-user/spring-boot-cli-3.5.0-bin.zip 2> /dev/null; then
161+ unzip -q /home/ec2-user/spring-boot-cli-3.5.0-bin.zip -d /home/ec2-user 2> /dev/null || true
162+ echo " Spring CLI installed successfully"
163+ else
164+ echo " ⚠️ Spring CLI download failed (optional component)"
165+ fi || true
152166
153167source /etc/profile.d/workshop.sh
154168aws configure set default.region ${AWS_REGION}
0 commit comments