-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Fixes #2384 aws_cloudwatch_log_metric_filter: default_value is automatically set to 0 #5933
Conversation
…is automatically set to 0
I should also have noted that a better solution is blocked on this issue: https://github.com/hashicorp/terraform/issues/16796 |
@radeksimko take a look? |
maybe @bflad you could take a look? |
I think we should implement this instead as a It's definitely an annoying limitation of the current type system, and potentially something we can address post 0.12, but the backwards compatible implementation will probably just use a While talking with @bflad about this, our consensus is that if we have to do a hack to support it, we should at least be consistent in our hacks. |
Makes sense; I'll update the PR |
I think you could have pushed to my branch so that we would have consolidated on a single PR. Anyway, I'll close mine as it is not needed anymore. |
@jocelynthode I didn't know that was possible; thanks. |
@paultyng much better approach; thanks. Looks like resource_aws_spot_fleet_request.go is doing the same thing more or less. |
@paultyng added the unit test and fixed the bug that you found |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks so much for this fix and patience @ahl! 🚀
--- PASS: TestAccAWSCloudWatchLogMetricFilter_basic (6.56s)
@ahl thanks for following up on this one! |
@paultyng it's pretty critical to us so I was motivated; thanks for sticking with me on it. |
This has been released in version 1.44.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Fixes #2384
Note I looked at #2759 and #2902 which were both old and incomplete
cc: @jocelynthode @modax
Changes proposed in this pull request:
Output from acceptance testing: