0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【初心者メモ】EC2インスタンスのファイルをS3にコピー

Last updated at Posted at 2025-03-01

テラタームからEC2接続

テラターム起動
ホスト:EC2のパブリックIP
ポート:22
→OK
ユーザー名:ec2-user
ペアキーを選択:

→OK(接続)

AWS CLI のインストール確認

aws --version

入っていない場合

sudo yum install -y aws-cli

AWS CLI 入ってれば次へ

ファイルを S3 にコピー

aws s3 cp /var/log/cloud-init.log s3://mys3/

/var/log/cloud-init.log はコピーしたいファイル、
mys3のところを自分のS3に変更。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?