You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.
If an issue is assigned to the modular-magician user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned to hashibot, a community member has claimed the issue already.
As you can see from the Terraform Plan output it will create one resource - an alerting policy within GCP's Monitoring.
Actual Behavior
Expected type 'Duration' but got 'String'.
It complains that the duration argument needs to be in the data type 'Duration' and not a string. Is it possible to cast a Duration data type? However, if I then remove the string and make it an integer I get the following error.
Illegal duration format; duration must end with 's'
Doesn't that then mean it has to be a string? It seems to contradict itself.
Here is what's on the Terraform Docs for Duration:
Steps to Reproduce
terraform apply
b/275110564
The text was updated successfully, but these errors were encountered:
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
Terraform v1.0.2
provider registry.terraform.io/hashicorp/google v3.75.0
Affected Resource(s)
resource "google_monitoring_alert_policy"
Terraform Configuration Files
Expected Behavior
As you can see from the Terraform Plan output it will create one resource - an alerting policy within GCP's Monitoring.
Actual Behavior
Expected type 'Duration' but got 'String'.
It complains that the duration argument needs to be in the data type 'Duration' and not a string. Is it possible to cast a Duration data type? However, if I then remove the string and make it an integer I get the following error.
Illegal duration format; duration must end with 's'
Doesn't that then mean it has to be a string? It seems to contradict itself.
Here is what's on the Terraform Docs for Duration:
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: