This project uses Semantic Versioning.
- Add support for default credentials providers
- Convert
http_error_code_returned_equals
value to string
- Add ability to use an AWS profile instead of explicit
s3_id
ands3_secret
The CloudFront integration now uses the official Ruby AWS
SDK. As a consequence, the accepted format of the
cloudfront_distribution_config
is slightly different.
Below are some examples of changes that you have to perform, depending on the
contents of your cloudfront_distribution_config
setting.
-
Rename
min_TTL
->min_ttl
-
Change
aliases: quantity: 1 items: CNAME: my.site.net
to
aliases: quantity: 1 items: - my.site.net
-
There might be other incompatible settings in your old configuration, but should them exist, the AWS SDK client will print you a helpful error and then safely exit. If this happens, just fix the problems that the CloudFront client reports and try again.
Also, the arrays in hashes are now merged:
source = {:x => [{:y => 1}]}
dest = {:x => [{:z => 2}]}
# merge...
Results: {:x => [{:y => 1, :z => 2}]}
With the help of array merging, given your config file contains the following setting:
cloudfront_distribution_config:
origins:
items:
- origin_path: /subfolder
... configure-s3-website
will include the origin_path
setting within the
properties of the first element in the items
array of your distribution
settings.
- Fix CreateBucket broken in 1.7.4
- Support all AWS regions
- see #13
- See #11
-
Change CloudFront
OriginProtocolPolicy
tohttp-only
See laurilehmijoki/s3_website#152 for discussion.
- Add eu-central-1 Region
- Add switches
--headless
and--autocreate-cloudfront-dist
- Fix bug that prevented creating new CloudFront distributions in the EU region
- Remove usage of the deprecated OpenSSL::Digest::Digest
- Do not override ERB code when adding CloudFront dist
- Support location constraint eu-west-1
-
Use the S3 website domain as the Cloudfront origin
Replace
S3OriginConfig
withCustomOriginConfig
. This solves the issue #6.
- Add support for custom index and error documents
- Allow the user to store his CloudFront settings in the config file
- Support updating configs of an existing CloudFront distribution
- Support creating of new distros with custom CloudFront configs
- Create a CloudFront distro if the user wants to deliver his S3 website via the CDN
- Support configuring redirects on the S3 website
- Use UTC time when signing requests
- Do not send the location constraint XML when using the standard region
- Add support for non-standard AWS regions