SuperNova
SuperNova

Reputation: 109

Can you "cd" into an AWS S3 bucket and a run a powershell script there

Is it possible to cd into AWS S3 buckets in powershell, and run a script on that directory as if it were on your local machine?

I've set up the credentials, but can't seem to find any articles on navigating through buckets using powershell.

Upvotes: 0

Views: 4258

Answers (1)

henrycarteruk
henrycarteruk

Reputation: 13227

You can just download the bucket contents and run the script locally.

AWS CLI:

aws s3 sync s3://yourbucket C:\folder

AWS Powershell:

Copy-S3Object -BucketName yourbucket -KeyPrefix * -LocalFolder C:\folder

Upvotes: 2

Related Questions