"Setting Up Ubuntu on Windows Store for AWS CLI Configuration"
Note: I am assuming that you are referring to the process of installing Ubuntu from the Windows Store and using it for AWS CLI configuration on a Windows machine.
Currently, I'm studying and experimenting with AWS, including launching EC2 instances and various other tasks. While following a book, I came across the process of configuring AWS CLI using the command line interface. On macOS, it's as simple as opening the Terminal and proceeding. However, on Windows, there are several installations and settings required, which can be quite cumbersome.
Instead of using the default Windows terminal (cmd), I found it quite inconvenient to work with PowerShell (in administrator mode). Hence, I will document an alternative method using Ubuntu, which can be downloaded and installed from the Windows Store.
Please note that I have followed online tutorials and guides, so there may be some inaccuracies in my instructions.
1. Installing Ubuntu from the Windows Store
Please refer to the following URL for detailed instructions: [Link to Microsoft Documentation](https://docs.microsoft.com/en-us/windows/wsl/install-win10)
1) Launch PowerShell in administrator mode.
2) Enter the following command:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
3) Reboot your system.
4) Go to the Microsoft Store and search for Ubuntu.
- Perform a search for "Ubuntu" within the store.
- Download and install the Ubuntu application.
(The documentation might mention logging in, but you can proceed with the installation without logging in.)
Please note that the above instructions are for installing Ubuntu from the Windows Store, specifically for configuring AWS CLI.
5) The installation will be completed in a few minutes.
2. Installing Python and PIP
To use AWS CLI, you need to have Python and PIP installed.
1) Launch Ubuntu.
2) When running Ubuntu for the first time, it will prompt you to create a user account.
3) Proceed with Python installation.
Please refer to the following URL for detailed instructions: [Link to AWS Documentation](https://docs.aws.amazon.com/cli/latest/userguide/install-linux-python.html)
- Check the installation: python3 --version
If Python is not installed: sudo apt install python3
4) Install PIP.
- Install Python script: curl -O https://bootstrap.pypa.io/get-pip.py
- Install necessary utilities for executing the Python script. It is recommended to update all packages before proceeding to avoid any potential errors. If you proceed without updating, errors may occur.
sudo apt update
sudo apt-get install python3-distutils
- Install PIP: python3 get-pip.py --user
5) Configure the PATH.
When installing PIP, you may encounter the following warning related to PATH. As the warning suggests, it is necessary to set the PATH accordingly.
export PATH=~/.local/bin:$PATH
source ~/.profile
pip --version
Running the above commands should display the version of pip without any errors, indicating a successful configuration.
6) Install AWS CLI.
Please refer to the following URL for detailed instructions: [Link to AWS Documentation](https://docs.aws.amazon.com/cli/latest/userguide/install-linux.html)
pip install awscli --upgrade --user
aws --version
After a successful installation, running the command "aws --version" should display the installed version of AWS CLI.
Please note that the above instructions are for installing Python, PIP, and AWS CLI on Ubuntu within the Windows environment.
댓글 없음:
댓글 쓰기