简体   繁体   English

如何从AWS EC2 Ubuntu Linux实例复制文件

[英]How do I copy a file from my AWS EC2 Ubuntu linux instance

I have a linux ubuntu instance and a S3 bucket I did 我有一个Linux ubuntu实例和一个S3存储桶

sudo apt-get install s3cmd

then tried 然后尝试

s3cmd put datafile.xml s3://jthink/datafile.xml

where jthink is my bucket name jthink是我的存储桶名称

but it says 但它说

ERROR: /home/ubuntu/.s3cfg: No such file or directory
ERROR: Configuration file not available.
ERROR: Consider using --configure parameter to create one

so i ran 所以我跑了

s3 --configure

and it asks for access keys, secret keys ectera I cannot find them, when I look at my S3 bucket in Amazon Web Console there seems to be no such thing 它要求访问密钥,私有密钥ectera我找不到它们,当我在Amazon Web Console中查看我的S3存储桶时,似乎没有这种东西

Access Key and Secret Key credentials are required for AWS API access and are used by many tools. 访问密钥和秘密密钥凭证对于AWS API访问是必需的,并且由许多工具使用。 Using the web management console you can find and create these credentials using the "Security Credentials" screen under your name on the top right. 使用Web管理控制台,您可以使用右上角您的名字下方的“安全凭据”屏幕找到并创建这些凭据。

But as your root account can not be restricted, it is very recommended that, when using third-party software, you create an IAM user with restricted privileges and/or different credentials. 但是由于您的根帐户不受限制,因此强烈建议您在使用第三方软件时创建具有受限特权和/或不同凭据的IAM用户。 You can learn how to do that here: http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_SettingUpUser.html 您可以在此处了解如何执行此操作: http : //docs.aws.amazon.com/IAM/latest/UserGuide/Using_SettingUpUser.html

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

相关问题 如何将文件从一个Rails应用程序复制到AWS EC2实例 - How do I copy a file from one rails application to aws ec2 instance 如何将.war文件复制到AWS上的EC2实例? - How to copy my .war file to EC2 instance on AWS? 如何从我的AWS linux EC2实例调用浏览器 - How to invoke browser from my AWS linux EC2 instance 如何在AWS Amazon Linux EC2实例上从PHP 7连接到SQL Server实例? - How to do I connect to a SQL Server instance from PHP 7 on an AWS Amazon Linux EC2 instance? 如何在 AWS EC2 ubuntu 实例中将我的 python3 版本从 3.5.2 升级到 3.7? - How Can I upgrade my python3 version from 3.5.2 to 3.7 in AWS EC2 ubuntu instance? 如何在我的 AWS Linux Ec2 实例上安装 JDK 15? - How do I install JDK 15 on my AWS Linux Ec2 instance? 如何在 AWS EC2 Linux 实例上运行编译和运行 c 文件? - How do I run compile and run a c file on an AWS EC2 Linux Instance? 如何将文件从一个EC2实例复制到另一个EC2实例? - How do I copy files from one EC2 instance to another EC2 instance? AWS EC2 (AWS Linux) 我如何访问私有实例 - AWS EC2 (AWS Linux) how I access a private instance 如何使用 lambda function 将文件从 s3 存储桶复制到 ec2 实例? - How do I copy a file from s3 bucket to ec2 instance using lambda function?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM