Skip to content

Commit dcfc103

Browse files
author
Bonismo
committed
Fix Solana node installing aws-cli error on x86_64 architecture
1 parent 13733e3 commit dcfc103

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/solana/lib/assets/user-data-ubuntu.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,16 @@ apt-get -yqq install jq unzip python3-pip chrony
3333

3434
if [ "$ARCH" == "x86_64" ]; then
3535
CW_AGENT_BINARY_URI=https://s3.amazonaws.com/amazoncloudwatch-agent/ubuntu/amd64/latest/amazon-cloudwatch-agent.deb
36-
AWS_CLI_BINARY_URI=https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip
3736
else
3837
CW_AGENT_BINARY_URI=https://s3.amazonaws.com/amazoncloudwatch-agent/ubuntu/arm64/latest/amazon-cloudwatch-agent.deb
39-
AWS_CLI_BINARY_URI=https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip
4038
fi
4139

4240
cd /opt || exit 1
4341

4442
ARCH=$(uname -m)
4543

4644
echo "Intalling AWS CLI"
47-
curl "$AWS_CLI_BINARY_URI" -o "awscliv2.zip"
48-
unzip awscliv2.zip
49-
/opt/aws/install
45+
snap install aws-cli --classic
5046

5147
echo "Downloading assets zip file"
5248
aws s3 cp $ASSETS_S3_PATH ./assets.zip --region $AWS_REGION

0 commit comments

Comments
 (0)