简体   繁体   English

您可以“ cd”入AWS S3存储桶并在其中运行powershell脚本吗?

[英]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? 是否可以在powershell中将cd插入AWS S3存储桶,并像在本地计算机上一样在该目录上运行脚本?

I've set up the credentials, but can't seem to find any articles on navigating through buckets using powershell. 我已经设置了凭据,但是似乎找不到关于使用Powershell在存储桶中导航的任何文章。

You can just download the bucket contents and run the script locally. 您可以只下载存储桶内容并在本地运行脚本。

AWS CLI : AWS CLI

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

AWS Powershell: AWS Powershell:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM