Comments (5)
Looks like you're trying to create a bucket that already exists ?
Are you trying to create a separate bucket or reuse an existing bucket ?
from terraform-aws-cloudfront-s3-cdn.
Closing this issue as stale. If you can reproduce it with the current version of this module, and are not trying to create a bucket that already exists, please open a new issue.
from terraform-aws-cloudfront-s3-cdn.
Could this be re-opened?
I get the same error and can confirm that the bucket did not exist. Both origin bucket and log bucket were created at the same time.
Error:
│ Error: Error creating S3 bucket: BucketAlreadyOwnedByYou: Your previous request to create the named bucket succeeded and you already own it.
│ status code: 409, request id: <retracted>, host id: <retracted>
│
│ with module.cloudfront_elections.module.log_bucket.aws_s3_bucket.this[0],
│ on .terraform/modules/cloudfront_elections.log_bucket/main.tf line 5, in resource "aws_s3_bucket" "this":
│ 5: resource "aws_s3_bucket" "this" {
data "aws_route53_zone" "this" {
name = var.zone_name
}
# Custom module, could probably use the Cloudposse cloudfront acm feature
module "acm" {
source = "../../modules/acm"
domain_name = var.zone_name
zone_id = data.aws_route53_zone.this.id
providers = {
aws = aws.us
}
}
module "cdn" {
source = "cloudposse/cloudfront-s3-cdn/aws"
version = "0.82.2"
namespace = "foo"
stage = "dev"
name = "bar"
aliases = [var.zone_name, "*.${var.zone_name}"]
dns_alias_enabled = true
parent_zone_id = data.aws_route53_zone.this.id
website_enabled = true
acm_certificate_arn = module.acm.certificate_arn
deployment_principal_arns = {
"${var.runner_arn}" = [""]
}
depends_on = [module.acm]
}
from terraform-aws-cloudfront-s3-cdn.
Even though I disable logging it still get the same error.
# ...
s3_access_logging_enabled = false
cloudfront_access_logging_enabled = false
# ...
from terraform-aws-cloudfront-s3-cdn.
Ok, I am retarded.
This has nothing todo with the module, there was a resource in another file that I missed 😆
I can show myself out.
from terraform-aws-cloudfront-s3-cdn.
Related Issues (20)
- Error: An argument named "response_headers_policy_id" is not expected here. HOT 5
- version 4.0.0 of the aws provider contains breaking changes for the CDN module HOT 11
- Make random_password.referer available as an output HOT 1
- AuthorizationHeaderMalformed: The authorization header is malformed; the region 'us-east-1' is wrong; expecting 'us-west-2'
- IAM Continuously Updates Between Apply HOT 1
- Using existing origin access identity fails with explicit context HOT 1
- Lambda@Edge submodule doesn't allow to control log group settings HOT 1
- Add support for origin-access-control to replace origin-access-identity HOT 2
- Allow route53 records overwrite
- `additional_bucket_policy` has no effect HOT 1
- The parameter ForwardedValues is required error if i use ordered_cache parameter HOT 2
- Cannot create deployment principal and the CDN in the same terraform run HOT 1
- http2and3 http_version gives validation error
- Ability to attach a custom iAM policy to lambdas
- There are many deprecated resources related to S3 HOT 1
- Unable to disable logging
- Changes To S3 Bucket Default Settings Breaks Access Logging HOT 3
- Unable to reference an origin bucket that does not existing yet
- Website enabled forces an S3 bucket SSL only access policy that can not be applied
- Version 5.0.0 of the aws provider contains breaking changes for this module HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-aws-cloudfront-s3-cdn.