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.
data"google_compute_network_endpoint_group""this" {
name ="not-existing-neg"
zone ="europe-west2-a"
}
output"network_endpoint_group" {
value =data.google_compute_network_endpoint_group.this
}
Debug Output
Planning failed. Terraform encountered an error while generating this plan.
╷
│ Error: projects/my-project/zones/europe-west2-a/networkEndpointGroups/not-existing-neg not found
│
│ with data.google_compute_network_endpoint_group.this,
│ on test.tf line 20, in data "google_compute_network_endpoint_group" "this":
│ 20: data "google_compute_network_endpoint_group" "this" {
│
Expected Behavior
Return an object with null values if the NEG doesn't exist
It is possible to create the resource with the shared terraform configuration, but only with version 4.84.0, for now it is not available for the current version. This could be an enhancement for the future.
Community Note
Terraform Version
Terraform v1.7.5
on darwin_arm64
Affected Resource(s)
datasource
google_compute_network_endpoint_group
Terraform Configuration
Debug Output
Planning failed. Terraform encountered an error while generating this plan.
╷
│ Error: projects/my-project/zones/europe-west2-a/networkEndpointGroups/not-existing-neg not found
│
│ with data.google_compute_network_endpoint_group.this,
│ on test.tf line 20, in data "google_compute_network_endpoint_group" "this":
│ 20: data "google_compute_network_endpoint_group" "this" {
│
Expected Behavior
Return an object with null values if the NEG doesn't exist
That was the behavior before v5.0.0 (tested with v4.84.0)
Actual Behavior
Plan fails if the NEG is not found in the google project after v5.0.0+
Steps to reproduce
terraform apply
Important Factoids
No response
References
No response
b/337926216
The text was updated successfully, but these errors were encountered: