Skip to content
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

Unable to disable logging #265

Open
syphernl opened this issue Apr 11, 2023 · 0 comments
Open

Unable to disable logging #265

syphernl opened this issue Apr 11, 2023 · 0 comments
Labels
bug 🐛 An issue with the system

Comments

@syphernl
Copy link
Contributor

Describe the Bug

We'd like to disable logging for a particular env, but it seems this doesn't work.

  s3_access_logging_enabled	= false  
  cloudfront_access_log_create_bucket	= false

Results in:

│ Error: Failed getting S3 bucket (): InvalidParameter: 1 validation error(s) found.
│ - minimum field size of 1, HeadBucketInput.Bucket.
│ 
│ 
│   with module.cloudfront.data.aws_s3_bucket.cf_logs[0],
│   on .terraform/modules/cloudfront/main.tf line 363, in data "aws_s3_bucket" "cf_logs":
│  363: data "aws_s3_bucket" "cf_logs" {

Expected Behavior

Logging to be disabled without any errors.

Steps to Reproduce

  • Disable the logs with s3_access_logging_enabled = false and cloudfront_access_log_create_bucket = false
  • See the error

Screenshots

No response

Environment

  • Terraform v1.4.4
  • Module v0.88.0

Additional Context

No response

@syphernl syphernl added the bug 🐛 An issue with the system label Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An issue with the system
Projects
None yet
Development

No branches or pull requests

1 participant