Menu

#79 Support CloudFront non-S3 origin / custom origin

open
nobody
s3cmd (120)
5
2014-08-26
2011-01-31
james abley
No

I have a custom origin CloudFront distribution, as described here:

http://eternusuk.blogspot.com/2011/01/creating-custom-origin-server-for.html

The s3cmd suite doesn't like it!

This is using s3cmd 1.0.0 (installed via Homebrew) on OSX Snow Leopard using Python 2.6.1.

$ s3cmd cflist

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
An unexpected error has occurred.
Please report the following lines to:
s3tools-bugs@lists.sourceforge.net
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Problem: ValueError: Unable to parse URL: example.com
S3cmd: 1.0.0

Traceback (most recent call last):
File "/usr/local/bin/s3cmd", line 2006, in <module>
main()
File "/usr/local/bin/s3cmd", line 1950, in main
cmd_func(args)
File "/usr/local/Cellar/s3cmd/1.0.0/libexec/S3/CloudFront.py", line 448, in info
pretty_output("Origin", S3UriS3.httpurl_to_s3uri(d.info['Origin']))
File "/usr/local/Cellar/s3cmd/1.0.0/libexec/S3/S3Uri.py", line 112, in httpurl_to_s3uri
raise ValueError("Unable to parse URL: %s" % http_url)
ValueError: Unable to parse URL: example.com

I'm not sure this is a bug, maybe just CloudFront has outgrown the initial S3 functionality, but I would still like s3cmd cflist to be able to list my other distributions if possible.

Discussion


Log in to post a comment.