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

Module does not adhere module.this.enabled #65

Closed
korenyoni opened this issue Jul 1, 2021 · 0 comments · Fixed by #66
Closed

Module does not adhere module.this.enabled #65

korenyoni opened this issue Jul 1, 2021 · 0 comments · Fixed by #66
Labels
bug 🐛 An issue with the system

Comments

@korenyoni
Copy link
Member

Found a bug? Maybe our Slack Community can help.

Slack Community

Describe the Bug

The module does not adhere module.this.enabled (Resources do not have a count attribute: https://github.com/cloudposse/terraform-aws-s3-website/blob/master/main.tf#L38).

Expected Behavior

When module.this.enabled=false, no resources should be created.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Instantiate module with module.this.enabled=false
  2. Run terraform plan

Logs

...
 # module.s3_website.aws_s3_bucket.default will be created
  + resource "aws_s3_bucket" "default" {
...

Environment (please complete the following information):

Terraform 0.13.7

Additional Context

N/A

@korenyoni korenyoni added the bug 🐛 An issue with the system label Jul 1, 2021
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

Successfully merging a pull request may close this issue.

1 participant