Tag Info

Hot answers tagged

1

sync an empty directory to the bucket with the --delete flag. mkdir tmp-empty-dir aws s3 sync --delete tmp-empty-dir/ s3://my-bucket then the bucket will be empty and can be deleted.


1

I use SSH (SFTP) for similar tasks. The steps to make this nice and secure are: Generate a client certificate for your uploading needs and install it in you .ssh/authorized_keys or similar on the S3 instance. Use sftp -i <public key> <file> <remote location> to drop your file where you need it. Put the command from step 2 above in a cron ...


1

The format for specifying an s3 location is s3://bucket/key so instead of s3://s3.amazonaws.com/my-bucket you would use s3://my-bucket/.


1

You "can" but that doesn't necessarily make it a good idea. Replacing a large object isn't more expensive than creating a new version that is small -- the price is the same, which makes the cost essentially the same since there isn't a charge for the data transfer between s3 and ec2 within a region. Moving the old logs into s3 with logrotate every time ...


1

So I would need to give CNAME record/A record to users so that they update DNS and redirect their domain to me. Careful: you appear to be conflating concepts in the DNS with HTTP (web browsing) protocol concepts. These are different, and must be addressed separately. DNS is used to provide a mapping between domain names and IP numbers (and other ...


1

After taking a look at this answer to Using environment properties with files in elastic beanstalk config files I added the following section to the .ebextensions/01_files.config Resources: AWSEBAutoScalingGroup: Metadata: AWS::CloudFormation::Authentication: S3Access: type: S3 roleName: aws-elasticbeanstalk-ec2-role ...


1

Is this possible or do I have to create www.example.com bucket which redirects to same page as example.com bucket? Yes, you'll need to create a second bucket for the www version. To keep things a little simpler, you can redirect the www.example.com to example.com and let the main bucket handle the final redirect.


1

Correct. Take the published list of IP netblocks for us-east-1 (home of the US-Standard region in S3)... https://forums.aws.amazon.com/ann.jspa?annID=1701 ...and use it to craft a bucket policy to deny request when the source IP is not in range, or allow only when the source IP is in range (the best choice will depend on your other policies, since a ...


1

I answered this same question on Stack Overflow. s3fs is indeed a reasonable solution, and in my case, I've coupled it with proftpd with excellent results, in spite of the theoretical/potential problems. At the time I wrote the answer, I had only set this up for one of my consulting clients... but since then, I've also started drinking my own kool-aid and ...



Only top voted, non community-wiki answers of a minimum length are eligible