VMware Communities
LaurentJ75012
Enthusiast
Enthusiast

Pourquoi une VM W11 qui tourne avec un Workstation 17 Sous W11 ne peut pas utiliser aws cli v2 ?

US Version bellow

Bonjour,

Pour éviter (ou minimiser les risques de) problèmes j'ai toujours créé mes environnements de développement dans des VM Windows sous VMWare Workstation (je pense que j'ai commencé avec la version 7 et je suis aujourd'hui avec la 17).

Actuellement, j'ai donc une vm windows 11 sous Workstation 17 dans une machine physique W11. La VM et la machine physique sont dans une domaine AD.

Actuellement je développe une application Python Django qui utilise un bucket s3 comme réceptacle pour ses fichiers statiques. Je ne vais pas entrer dans les détails mais je dois pouvoir utiliser le AWS_CLI_V2.

Que je mette ma VM en Nat ou en Bridged, j'ai le même souci, lorsque j'utilise la commande :

aws s3 ls, j'obtiens : An error occurred (AccessDenied) when calling the ListBuckets operation: Access Denied

La même commande depuis le host : j'obtiens bien la liste de mes buckets.

Je n'arrive pas à m'expliquer comment ou pourquoi le comportement de la VM est différent de la machine Physique.

C'est l'AWS_CLI_V2 qui détecterait qu'on tourne sous VMWare ?

D'avance merci pour votre aide,

Laurent



Hello,

To avoid (or minimise the risk of) problems I've always created my development environments in Windows VMs running VMWare Workstation (I think I started with version 7 and I'm now on version 17).

So I currently have a Windows 11 VM running Workstation 17 in a W11 physical machine. The VM and the physical machine are in an AD domain.

I'm currently developing a Django Python application that uses an s3 bucket as a receptacle for its static files. I won't go into detail but I need to be able to use AWS_CLI_V2.

Whether I put my VM in Nat or Bridged, I have the same problem, when I use the :

aws s3 ls, I get : An error occurred (AccessDenied) when calling the ListBuckets operation: Access Denied

The same command from the host: I get the list of my buckets.

I can't figure out how or why the VM behaves differently from the physical machine.

Is it the AWS_CLI_V2 that detects that we're running under VMWare?

Thanks in advance for your help,

Laurent

0 Kudos
1 Reply
Technogeezer
Immortal
Immortal

Have you checked any available S3 logs and S3 CLI debug output https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-troubleshooting.html to get any clues to why your request is getting rejected?

- Paul (Technogeezer)
Editor of the Unofficial Fusion Companion Guides
0 Kudos