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.
# Copy-paste your Terraform configurations here.## For large Terraform configs, please use a service like Dropbox and share a link to the ZIP file.# For security, you can also encrypt the files using our GPG public key:# https://www.hashicorp.com/security## If reproducing the bug involves modifying the config file (e.g., apply a config,# change a value, apply the config again, see the bug), then please include both:# * the version of the config before the change, and# * the version of the config after the change.
Debug Output
Panic Output
Expected Behavior
There should be no updates happening.
Actual Behavior
The filestore resource is constantly recreated.
Steps to Reproduce
put the code above in a file
terraform apply -auto-approve
'terraform apply -auto-approve`
'terraform apply -auto-approve`
It just constantly re-creates the file store. It seems as in the network name is incorrect:
# google_filestore_instance.filestore must be replaced
-/+ resource "google_filestore_instance" "filestore" {
~ create_time = "2022-06-27T10:34:42.068149395Z" -> (known after apply)
+ etag = (known after apply)
~ id = "projects/gcp-dev/locations/australia-southeast1-a/instances/app-name-filestore" -> (known after apply)
- labels = {} -> null
name = "app-name-filestore"
~ project = "dev" -> (known after apply)
+ zone = (known after apply)
# (2 unchanged attributes hidden)
~ networks {
~ ip_addresses = [
- "172.16.255.2",
] -> (known after apply)
~ network = "app-name-vpc" -> "projects/gcp-dev/global/networks/app-name-vpc" # forces replacement
# (3 unchanged attributes hidden)
}
I can post the full output if you like.
Important Factoids
References
#0000
The text was updated successfully, but these errors were encountered:
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
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 -v
Terraform v1.2.3
on darwin_amd64
Affected Resource(s)
Terraform Configuration Files
provider "google" {
project = "gcp-dev"
}
resource "google_compute_network" "vpc" {
name = "app-name-vpc"
auto_create_subnetworks = false
}
resource "google_compute_subnetwork" "network" {
name = "app-name-network"
ip_cidr_range = "172.160.0.0/24"
region = "australia-southeast1"
network = google_compute_network.vpc.id
}
resource "google_filestore_instance" "filestore" {
name = "app-name-filestore"
location = "australia-southeast1-a"
tier = "STANDARD"
file_shares {
capacity_gb = 1024
name = "salt_master"
}
networks {
network = google_compute_network.vpc.id
modes = ["MODE_IPV4"]
connect_mode = "DIRECT_PEERING"
reserved_ip_range = "172.16.255.0/29"
}
}
Debug Output
Panic Output
Expected Behavior
There should be no updates happening.
Actual Behavior
The filestore resource is constantly recreated.
Steps to Reproduce
terraform apply -auto-approve
It just constantly re-creates the file store. It seems as in the network name is incorrect:
I can post the full output if you like.
Important Factoids
References
The text was updated successfully, but these errors were encountered: