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 a user, that user is claiming responsibility for the issue.
Customers working with a Google Technical Account Manager or Customer Engineer can ask them to reach out internally to expedite investigation and resolution of this issue.
resource"google_logging_metric""cloudsql_backup" {
name ="cloudsql/backup_status"
filter ="resource.type=cloudsql_database AND protoPayload.methodName=cloudsql.instances.automatedBackup"metric_descriptor {
metric_kind ="DELTA"
value_type ="INT64"labels {
key ="instance"
value_type ="STRING"
description ="The instance name for the Cloud SQL database."
}
labels {
key ="status"
value_type ="STRING"
description ="The automated backup status as seen in logs."
}
}
label_extractors = {
"instance"="EXTRACT(protoPayload.resourceName)""status"="EXTRACT(protoPayload.metadata.windowStatus)"
}
}
Debug Output
No response
Expected Behavior
Terraform plan and apply indicates an update in-place, even though this resource API doesn't seem to support changing the name attribute.
Actual Behavior
The previous version (with older name) remains in place (however, it can no longer be seen in the state file), and a new resource with the new name is created (and can be seen in the state file).
Steps to reproduce
Create a google_logging_metric resource;
Rename the resource and run a terraform plan and apply;
Check the resources in the project: gcloud logging metrics list
Important Factoids
No response
References
No response
b/342170664
The text was updated successfully, but these errors were encountered:
After creating the google_logging_metric if the name is replaced the terminal returns a message of update-in-place. The issue is that this is a wrong message because it doesn't apply this behavior, and just create a new metric keeping both metrics and just changing the terraform state file
Community Note
Terraform Version & Provider Version(s)
Terraform v1.8.3
on 386
Affected Resource(s)
google_logging_metric
Terraform Configuration
Debug Output
No response
Expected Behavior
Terraform
plan
andapply
indicates anupdate in-place
, even though this resource API doesn't seem to support changing thename
attribute.Actual Behavior
The previous version (with older name) remains in place (however, it can no longer be seen in the state file), and a new resource with the new name is created (and can be seen in the state file).
Steps to reproduce
google_logging_metric
resource;terraform plan
andapply
;gcloud logging metrics list
Important Factoids
No response
References
No response
b/342170664
The text was updated successfully, but these errors were encountered: