skip to Main Content

I want to configure an FTP server on my EC2 instance so that it uploads files directly to S3. This means that every file I upload through the FTP server should automatically be sent to S3. How can I set this up?

I need to upload many files that are several gigabytes in size, but I want to avoid spending money on cloud storage. That’s why I am using this method.

2

Answers


  1. Preferred method: Upload directly to S3 without using FTP (which is a 53 year-old protocol).

    Alternative: Use AWS Transfer for SFTP. It will do exactly what you seek, but note that charges apply. It is a fully-manage service so you will not need an EC2 instance.

    Login or Signup to reply.
  2. Question for you:

    1. From where will you be trying to upload ?

    If youre going to upload from a computer, then you do not need an ec2. Use AWS cli like so:

    1. aws sts-assume-role –role-arn –role-session-name
    2. copy the credentials to ~/.aws/credentials
    3. aws s3 sync or aws s3 cp –recursve

    If youre already uploading from ec2, then why not do :

    1. sts-assume role
    2. aws s3 sync or aws s3 cp ?
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search