-
-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
S3 bucket - not found #18
Comments
Out of curiousity, can you try a previous release of this module. We recently made some big changes and I am concerned that broke it. e.g. try |
(yes, it should create the bucket) |
This was last tested using the example code in the example folder and it created. But it is a good idea to test the previous version! |
Yep, 0.1.7 works (creating bucket), 0.2.0 bails with a bucket not found |
Can confirm the same happened here, running Terraform v0.11.7. |
@danlamanna we'll try to find some more time to get back to this. Pull requests welcome =) |
I can confirm the same issue; strangely only happens when adding 2 blocks of |
@jschaul oh wierd! Thanks for sharing. |
Any idea what a work around could be? No Found error as well here. Terraform v0.11.8 namespace = "${var.dept}" |
Ok! We definitely need to get this fixed. For now, can you use an earlier release of the module? |
Addressing this now |
@garzparz what region is this in? |
Can someone please see if my new branch module "cdn" {
source = "git::https://github.com/cloudposse/terraform-aws-cloudfront-s3-cdn.git?ref=regional_support"
namespace = "${var.namespace}"
stage = "${var.environment}"
name = "${var.name}"
aliases = ["app.${var.domain_name}"]
parent_zone_name = "${var.domain_name}"
} |
@martaver can you try the new branch too? |
@Jamie-BitFlight Does this exists in all regions?
|
@Jamie-BitFlight I tested your new module, same issue. Deployed to an account created by Landing Zone. So we have a master aws account, that has two AWS organizations accounts under it. I have deployed your module successfully under one AWS org account, but when using a second AWS org account from same master, I get the Not Found error. Not sure if my env could be contributing. Is there some quick hack I could make to my fork to get past this? Function logic in terraform is a little tricky in your module. |
Would you mind giving me a snippet of how you are using the module? So I can test it using a similar set up? |
@Jamie-BitFlight I'm creating my own origen bucket now and will try passing that in, my config below was assuming the S3 bucket would be created by the module. module "cdn" { tags = { |
Quick update, I had a terraform state file with no owner for this new module. Deleted, removed entry form lock table for new module and rebuilt, the original error I had reported is now gone. I can build the cdn letting it create S3 buckets. |
Thanks! |
@martaver @mike-zipit @jschaul @danlamanna does @Jamie-BitFlight's PR fix your issues? Are you still encountering the issues? |
I'm experiencing the same problem with both master and the branch. I'm using the syntax exactly as in the example. I've tried applying on top of an apply with the same problem. It's in us-west-2, in a sub-account (not master account) |
@aknysh can you see if you can reproduce this? Seems to be affecting a lot of folks :/ |
First up, my deepest thanks for the great examples and useful modules you guys have laid out!
I'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:
If 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:So with my configuration, shouldn't this module be creating the S3 bucket itself and returning its name/arn?
The text was updated successfully, but these errors were encountered: