{"action":"closed","issue":{"url":"https://api.github.com/repos/cloudposse/terraform-aws-cloudfront-s3-cdn/issues/18","repository_url":"https://api.github.com/repos/cloudposse/terraform-aws-cloudfront-s3-cdn","labels_url":"https://api.github.com/repos/cloudposse/terraform-aws-cloudfront-s3-cdn/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/cloudposse/terraform-aws-cloudfront-s3-cdn/issues/18/comments","events_url":"https://api.github.com/repos/cloudposse/terraform-aws-cloudfront-s3-cdn/issues/18/events","html_url":"https://github.com/cloudposse/terraform-aws-cloudfront-s3-cdn/issues/18","id":336601436,"node_id":"MDU6SXNzdWUzMzY2MDE0MzY=","number":18,"title":"S3 bucket - not found","user":{"login":"Martaver","id":6123570,"node_id":"MDQ6VXNlcjYxMjM1NzA=","avatar_url":"https://avatars0.githubusercontent.com/u/6123570?v=4","gravatar_id":"","url":"https://api.github.com/users/Martaver","html_url":"https://github.com/Martaver","followers_url":"https://api.github.com/users/Martaver/followers","following_url":"https://api.github.com/users/Martaver/following{/other_user}","gists_url":"https://api.github.com/users/Martaver/gists{/gist_id}","starred_url":"https://api.github.com/users/Martaver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Martaver/subscriptions","organizations_url":"https://api.github.com/users/Martaver/orgs","repos_url":"https://api.github.com/users/Martaver/repos","events_url":"https://api.github.com/users/Martaver/events{/privacy}","received_events_url":"https://api.github.com/users/Martaver/received_events","type":"User","site_admin":false},"labels":[{"id":691970934,"node_id":"MDU6TGFiZWw2OTE5NzA5MzQ=","url":"https://api.github.com/repos/cloudposse/terraform-aws-cloudfront-s3-cdn/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":{"login":"aknysh","id":7356997,"node_id":"MDQ6VXNlcjczNTY5OTc=","avatar_url":"https://avatars0.githubusercontent.com/u/7356997?v=4","gravatar_id":"","url":"https://api.github.com/users/aknysh","html_url":"https://github.com/aknysh","followers_url":"https://api.github.com/users/aknysh/followers","following_url":"https://api.github.com/users/aknysh/following{/other_user}","gists_url":"https://api.github.com/users/aknysh/gists{/gist_id}","starred_url":"https://api.github.com/users/aknysh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aknysh/subscriptions","organizations_url":"https://api.github.com/users/aknysh/orgs","repos_url":"https://api.github.com/users/aknysh/repos","events_url":"https://api.github.com/users/aknysh/events{/privacy}","received_events_url":"https://api.github.com/users/aknysh/received_events","type":"User","site_admin":false},"assignees":[{"login":"aknysh","id":7356997,"node_id":"MDQ6VXNlcjczNTY5OTc=","avatar_url":"https://avatars0.githubusercontent.com/u/7356997?v=4","gravatar_id":"","url":"https://api.github.com/users/aknysh","html_url":"https://github.com/aknysh","followers_url":"https://api.github.com/users/aknysh/followers","following_url":"https://api.github.com/users/aknysh/following{/other_user}","gists_url":"https://api.github.com/users/aknysh/gists{/gist_id}","starred_url":"https://api.github.com/users/aknysh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aknysh/subscriptions","organizations_url":"https://api.github.com/users/aknysh/orgs","repos_url":"https://api.github.com/users/aknysh/repos","events_url":"https://api.github.com/users/aknysh/events{/privacy}","received_events_url":"https://api.github.com/users/aknysh/received_events","type":"User","site_admin":false}],"milestone":null,"comments":23,"created_at":"2018-06-28T12:32:11Z","updated_at":"2018-11-02T03:57:20Z","closed_at":"2018-11-02T03:57:20Z","author_association":"NONE","body":"First up, my deepest thanks for the great examples and useful modules you guys have laid out!\r\n\r\nI'm trying to use this module to bootstrap an S3-backed cloudfront distribution. When I'm applying this module, though, I get an error trying to create the associated origin S3 bucket:\r\n\r\n```\r\nmodule.cdn.data.aws_s3_bucket.selected: data.aws_s3_bucket.selected: Failed getting S3 bucket: NotFound: Not Found\r\n```\r\n\r\nIf I understand the module's code correctly, the module should be creating the S3 bucket if no `origin_bucket` parameter is provided. This is my basic configuration:\r\n\r\n```\r\nmodule \"cdn\" {\r\n  source           = \"git::https://github.com/cloudposse/terraform-aws-cloudfront-s3-cdn.git?ref=master\"\r\n  namespace        = \"${var.namespace}\"\r\n  stage            = \"${var.environment}\"\r\n  name             = \"${var.name}\"\r\n  aliases          = [\"app.${var.domain_name}\"]\r\n  parent_zone_name = \"${var.domain_name}\"\r\n}\r\n```\r\n\r\nSo with my configuration, shouldn't this module be creating the S3 bucket itself and returning its name/arn?"}}
{"actor":{"display_login":"aknysh"}}