AWS CLI V2 from a development W11 virtual machine runnung under VMWare Workstation 17

0

Good evening,

I'm an old developer and I'm beginning to discover with great pleasure the infinite power of AWS.

I'm working from a Windows 11 virtual machine running VM Ware Workstation 17 (presumably the latest version). VMWare Workstation is installed in a machine running Windows 11.

I'm working on a Python Django project with Visual Studio Code and I've reached the point where I want to move to the AWS Cloud.

The first step is to transfer my project's static files to an S3 bucket. I've copied the files by hand and I can see my images, css and js are accessible as if they were local.

Django has a command called collectstatic that retrieves all the static files needed to run the application under development and puts them in a folder in the bucket.

For this command to work, the AWS CLI V2 must be installed locally and the configuration parameters must be the same in both the Django project and the CLI.

With strictly the same configuration, when I try to do an aws s3 ls from the virtual market I get : An error occurred (AccessDenied) when calling the ListBuckets operation: Access Denied

Whereas on the host machine, with strictly the same configuration, it works, and I get the list of my buckets.

Is there a way to run the CLI from a virtual machine?

Pourquoi ne peut-on pas sécuriser la communication AWS CLI V2 avec des clés ssh ?

Thanks in advance

Laurent

Lolo
asked 9 months ago233 views
1 Answer
0

When running the cli, you need to be using a role or IAM access keys which has the correct access

If you run aws configure you will be able to verify/ configure the same keys you have on the host machine.

profile picture
EXPERT
answered 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions