Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using aws-cli #4

Closed
genifycom opened this issue Mar 27, 2020 · 4 comments
Closed

Using aws-cli #4

genifycom opened this issue Mar 27, 2020 · 4 comments
Labels
question Further information is requested

Comments

@genifycom
Copy link

genifycom commented Mar 27, 2020

When I run aws in AmazonWSL bash, it doesn't seem to do anything.

e.g. aws --version
simply returns to the bash prompt.

I also tried yum install aws-cli which did the install but aws still does not do anything.

-bash-4.2# yum install aws-cli
Loaded plugins: ovl, priorities
amzn2-core | 2.4 kB 00:00:00
Package awscli-1.16.300-1.amzn2.0.1.noarch already installed and latest version
Nothing to do

How do I get aws-cli working?

-bash-4.2# aws --version
-bash-4.2#

@yosukes-dev
Copy link
Owner

❯ aws --version
aws-cli/1.16.300 Python/2.7.16 Linux/4.19.84-microsoft-standard+ botocore/1.13.36

It works fine in my environment.
Are there any steps to reproduce it?
If you are unsure, try reinstalling the package.

@genifycom
Copy link
Author

Can you advise when aws cli is available. I tried this on a new machine.
This is a Windows 10 machine

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

Extract Amazon2.zip to Amazon2.exe and Run Amazon2.exe (as administrator)

In Administrator Powershell I ran wsl
I checked AmazonWSL

-bash-4.2# cat /etc/os-release
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"
-bash-4.2#

I check the current directory
-bash-4.2# pwd
/mnt/c/Windows/System32
-bash-4.2#

Then I try aws --version

-bash-4.2# aws --version
-bash: aws: command not found
-bash-4.2#

Can you advise your steps please and I will try them.
Thank you

@yosukes-dev
Copy link
Owner

To use the AWS CLI, you must execute the following command.

yum install aws-cli

@yosukes-dev yosukes-dev added the question Further information is requested label Apr 5, 2020
@yosukes-dev
Copy link
Owner

Close because there is no reaction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants