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.
Like other data resources that query lists of things, the data resource should have been created successfully, and its query_value attribute should have contained an empty list.
Actual Behavior
The data resource fails to create with an error citing the wrong resource:
data.google_compute_instance_guest_attributes.attrs: Reading...
Planning failed. OpenTofu encountered an error while generating this plan.
╷
│ Error: projects/$project/zones/us-east5-a/instances/$name not found
│
│ with data.google_compute_instance_guest_attributes.attrs,
│ on main.tf line 15, in data "google_compute_instance_guest_attributes" "attrs":
│ 15: data "google_compute_instance_guest_attributes" "attrs" {
│
╵
Note that the error message indicates that the instance does not exist. The instance does exist; there just aren't any guest attributes in the queried namespace. If you change the query to hostkeys/ (for an instance that has hostkeys attributes) it works correctly.
Steps to reproduce
tofu plan
Important Factoids
No response
References
No response
b/379900319
The text was updated successfully, but these errors were encountered:
Even if a metadata enable-guest-attributes is used on a google_compute_instance it is not possible to use any different value for google_compute_instance_guest_attributes.query_path
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Community Note
Terraform Version & Provider Version(s)
OpenTofu v1.8.2
on linux_amd64
Affected Resource(s)
google_compute_instance_guest_attributes
Terraform Configuration
Replace
$project
and$name
(and maybeus-east5-a
) with a project and an instance that exist:Debug Output
https://gist.github.com/quentinmit/8905c2de4ff0caa3fc10e58bbb5aa6d1
Expected Behavior
Like other data resources that query lists of things, the data resource should have been created successfully, and its
query_value
attribute should have contained an empty list.Actual Behavior
The data resource fails to create with an error citing the wrong resource:
Note that the error message indicates that the instance does not exist. The instance does exist; there just aren't any guest attributes in the queried namespace. If you change the query to
hostkeys/
(for an instance that has hostkeys attributes) it works correctly.Steps to reproduce
tofu plan
Important Factoids
No response
References
No response
b/379900319
The text was updated successfully, but these errors were encountered: