我创建了两个配置文件(一个用于源,一个用于目标存储桶)并使用以下命令进行复制:
aws s3 cp --profile source_profile s3://source_bucket/file.txt --profile target_profile s3://target_profile/
Run Code Online (Sandbox Code Playgroud)
但它会低于错误.
fatal error: An error occurred (403) when calling the HeadObject operation: Forbidden
Run Code Online (Sandbox Code Playgroud)
看起来我们不能使用aws命令使用多个配置文件.
我正在尝试为 SCP 我的 python 脚本创建一个新文件夹,以便我可以在 AWS EC2 实例上运行它。
所以我有 SSH 并连接到我的实例。我尝试了ls没有任何显示。
pwd显示:
/home/ec2-user
Run Code Online (Sandbox Code Playgroud)
mkdir /newFile显示:
mkdir: cannot create directory '/newFile': Permission denied
Run Code Online (Sandbox Code Playgroud)
sudo mkdir /newFile显示没有错误。但当我 时ls,什么也没有显示。怎么了?
我使用的是 MacBook,我的实例是 AWS Linux AMI。