{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/5221","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/5221/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/5221/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/5221/events","html_url":"https://github.com/hashicorp/terraform/pull/5221","id":134990781,"number":5221,"title":"CloudFront distribution and origin access identity support","user":{"login":"vancluever","id":10704423,"avatar_url":"https://avatars.githubusercontent.com/u/10704423?v=3","gravatar_id":"","url":"https://api.github.com/users/vancluever","html_url":"https://github.com/vancluever","followers_url":"https://api.github.com/users/vancluever/followers","following_url":"https://api.github.com/users/vancluever/following{/other_user}","gists_url":"https://api.github.com/users/vancluever/gists{/gist_id}","starred_url":"https://api.github.com/users/vancluever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vancluever/subscriptions","organizations_url":"https://api.github.com/users/vancluever/orgs","repos_url":"https://api.github.com/users/vancluever/repos","events_url":"https://api.github.com/users/vancluever/events{/privacy}","received_events_url":"https://api.github.com/users/vancluever/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hashicorp/terraform/labels/enhancement","name":"enhancement","color":"d4c5f9"},{"url":"https://api.github.com/repos/hashicorp/terraform/labels/new-resource","name":"new-resource","color":"d4c5f9"},{"url":"https://api.github.com/repos/hashicorp/terraform/labels/provider/aws","name":"provider/aws","color":"bfdadc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":28,"created_at":"2016-02-19T22:25:16Z","updated_at":"2016-04-04T12:12:56Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hashicorp/terraform/pulls/5221","html_url":"https://github.com/hashicorp/terraform/pull/5221","diff_url":"https://github.com/hashicorp/terraform/pull/5221.diff","patch_url":"https://github.com/hashicorp/terraform/pull/5221.patch"},"body":"Reference: #3330 \r\n\r\nI'm opening this new PR just to try and move this along. This branch is pretty much good to merge.\r\n\r\nAs mentioned in #3330, this is feature-complete CloudFront distribution resource, actually slightly more feature complete than the equivalent in CloudFormation (it doesn't seem like GZIP compression is supported yet, for example). Supports multiple origins, cache behaviours, and has a config layout like you would expect to have when sending the distribution configuration to API or CloudFormation.\r\n\r\nI have also added `aws_cloudfront_origin_access_identity`, which allows origin access identities to be generated from Terraform rather than the console, definitely pushing this feature set past what CloudFormation has.\r\n\r\nOne other thing I'm waiting on is #5218, which will allow me to enforce a max instance of 1 on some of the complex types that need it (example: `default_cache_behavior`, `viewer_certificate`, etc). But if this is merged before that is I will just add these at a later time.\r\n\r\nAgain, if anyone wants to give it ago in a custom build, if you find anything that's an issue, let me know, otherwise the acceptance tests give a good spread of use cases."},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/205270923","html_url":"https://github.com/hashicorp/terraform/pull/5221#issuecomment-205270923","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/5221","id":205270923,"user":{"login":"blakesmith","id":44368,"avatar_url":"https://avatars.githubusercontent.com/u/44368?v=3","gravatar_id":"","url":"https://api.github.com/users/blakesmith","html_url":"https://github.com/blakesmith","followers_url":"https://api.github.com/users/blakesmith/followers","following_url":"https://api.github.com/users/blakesmith/following{/other_user}","gists_url":"https://api.github.com/users/blakesmith/gists{/gist_id}","starred_url":"https://api.github.com/users/blakesmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blakesmith/subscriptions","organizations_url":"https://api.github.com/users/blakesmith/orgs","repos_url":"https://api.github.com/users/blakesmith/repos","events_url":"https://api.github.com/users/blakesmith/events{/privacy}","received_events_url":"https://api.github.com/users/blakesmith/received_events","type":"User","site_admin":false},"created_at":"2016-04-04T12:12:56Z","updated_at":"2016-04-04T12:12:56Z","body":"If anyone else is interested in trying out this PR, I wrote up a blog post on using this to setup an S3 static site fronted with CloudFront: http://blakesmith.me/2016/04/02/terraform-aws-static-site-with-cloudfront.html"}}