Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I know that i can mount s3 buckets with s3fs on EC2 instance. So i have next question can i somehow mount Amazon Cloud Front (my S3 buckets files) in EC2 instance?

share|improve this question
1  
You'd mount the actual underlying S3 bucket, not the CloudFront distribution. –  ceejayoz Apr 5 '13 at 14:03
add comment

2 Answers 2

up vote 4 down vote accepted

I don't believe so. Why would you need to do this, though? Cloudfront is merely a CDN front-end to your static data, which is most likely being hosted out of your S3 bucket. There should be no need to interact with the data in Cloudfront other than to expire objects from the cache, which can be done through the Cloudfront API or by setting proper HTTP headers.

share|improve this answer
add comment

CloudFront is a CDN (Content Distribution Network). The source for your CDN (in this case) is your S3 Bucket.

You can't edit the files that the CDN holds directly, you must edit their ORIGIN (the file in s3) then you can purge the filename in the CDN so that it will grab the updated file form S3.

It doesn't make any sense to mount files from a CDN, it is only meant for serving files to end users (from one of many possible edge servers where the files are located).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.