[英]Run AWS CLI from local without storing credentials in local
How to run aws cli to download s3 bucket data without storing aws credential in local machine?如何运行 aws cli 下载 s3 存储桶数据而不将 aws 凭据存储在本地计算机中?
Please Note that s3 bucket is not a public bucket.请注意,s3 存储桶不是公共存储桶。
Not sure what your goal is, but you can use environment variables which you are only exporting for the current session/aws_cli run.不确定您的目标是什么,但您可以使用仅为当前会话/aws_cli 运行导出的环境变量。
To prevent in bash (asuming you are using linux) that the export is written to history, you can use a space infront of the command.为了防止在 bash(假设您使用的是 linux)中将导出写入历史记录,您可以在命令前使用一个空格。
You can start an EC2 instance and give that instance a role that allows it to read from your S3 bucket.您可以启动一个 EC2 实例并为该实例提供一个角色,以允许它从您的 S3 存储桶中读取数据。 Once started, connect to the EC2 instance using ssh and initiate your S3 transfer using aws s3 cp...ˋ or ˋaws s3 sync...
启动后,使用 ssh 连接到 EC2 实例并使用aws s3 cp...ˋ or ˋaws s3 sync...
启动您的 S3 传输aws s3 cp...ˋ or ˋaws s3 sync...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.