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

aws_cloudwatch_log_group not destroyed when enabled=false #181

Open
bartelemi opened this issue Feb 3, 2022 · 0 comments
Open

aws_cloudwatch_log_group not destroyed when enabled=false #181

bartelemi opened this issue Feb 3, 2022 · 0 comments
Labels
bug 🐛 An issue with the system

Comments

@bartelemi
Copy link
Contributor

Describe the Bug

aws_cloudwatch_log_group resource should respect the context.enabled flag.
Right now I have to set cloudwatch_log_group_enabled as well as enabled to false to destroy all the resources.

Expected Behavior

Setting up the enabled flag from the context should be enough to deprovision all the resources.

Steps to Reproduce

  1. Deploy this module to your AWS cloud.
  2. In next iteration, set the enabled flag to false
  3. Run the terraform apply command
  4. See error:
Error: "name" isn't a valid log group name (alphanumeric characters, underscores, hyphens, slashes, hash signs and dots are allowed): ""
  with aws_cloudwatch_log_group.app[0],
  on main.tf line 18, in resource "aws_cloudwatch_log_group" "app":
  18:   name              = module.this.id
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