Open coolaj86 opened 3 months ago
See also:
Create and secure ~/.aws/credentials
~/.aws/credentials
mkdir -p ~/.aws/ chmod 0750 ~/.aws touch ~/.aws/credentials chmod 0600 ~/.aws/credentials touch ~/.aws/config
curl 'https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip' -o ./awscliv2.zip unzip ./awscliv2.zip ./aws/install \ --bin-dir ~/.local/opt/aws-cli \ --install-dir ~/.local/opt/aws-cli \ --update
~/.aws/choices.xml
mkdir -p ~/.aws/
mkdir -p ~/.local/opt
echo '<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <array> <dict> <key>choiceAttribute</key> <string>customLocation</string> <key>attributeSetting</key> <string>'"$HOME/.local/opt"'</string> <key>choiceIdentifier</key> <string>default</string> </dict> </array> </plist>' > ~/.aws/choices.xml
Install the AWS CLI pkg using the conflict-free install directory
curl 'https://awscli.amazonaws.com/AWSCLIV2.pkg' -o ./AWSCLIV2.pkg installer -pkg ./AWSCLIV2.pkg \ -target 'CurrentUserHomeDirectory' \ -applyChoiceChangesXML ~/.aws/choices.xml rm ./AWSCLIV2.pkg
See also:
Create and secure
~/.aws/credentials
Linux Conflict-Free Install
macOS Conflict-Free Install
~/.aws/choices.xml
with your local install directoryInstall the AWS CLI pkg using the conflict-free install directory