如何解决如何在Terraform中解决“错误409:这些数据存储区实体上的争用过多”?
我是Terraform的新手。在这里,我试图使用Terraform在GCP
中创建多个Firestore索引。我收到此错误Error: Error creating Index: googleapi: Error 409: too much contention on these datastore entities. please try again.
,too much contention!
是什么意思,以下是我的Terraform脚本:
resource "google_firestore_index" "job_config2_index" {
project = var.projectId
collection = var.job_config_firestore
fields {
field_path = "customer_id"
order = "ASCENDING"
}
fields {
field_path = "job_type"
order = "ASCENDING"
}
fields {
field_path = "store_id"
order = "ASCENDING"
}
fields {
field_path = "ms_asset_id"
order = "ASCENDING"
}
fields {
field_path = "end_date_time"
order = "ASCENDING"
}
fields {
field_path = "__name__"
order = "ASCENDING"
}
timeouts {
create = "60m"
}
}
以下是日志:
Step #2:
Step #2: Error: Error creating Index: googleapi: Error 409: too much contention on these datastore entities. please try again.
Step #2:
Step #2: on firestore.tf line 375,in resource "google_firestore_index" "job_config2_index":
Step #2: 375: resource "google_firestore_index" "job_config2_index" {
Step #2:
Step #2:
Finished Step #2
我该如何解决?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。