Terraform,OCI:oci_audit_configuration 超时
Terraform, OCI: oci_audit_configuration timing out
Terraform 在创建资源 oci_audit_configuration
时超时(意味着 oci_mysql_mysql_db_system
的依赖项)。我不明白为什么。
mysql.tf:
resource "oci_audit_configuration" "configuration" {
compartment_id = var.tenancy_ocid
retention_period_days = var.configuration_retention_period_days
}
导致:
Error: Timed out waiting for configuration to reach specified condition.
on ../modules/mysql/mysql.tf line 1, in resource "oci_audit_configuration" "configuration":
1: resource "oci_audit_configuration" "configuration" {
oci_mysql_mysql_db_system
的 configuration_id
不是 oci_audit_configuration
。
您可以在此处查看如何创建 oci_mysql_mysql_db_system
的示例:
https://github.com/terraform-providers/terraform-provider-oci/blob/master/examples/mysql/main.tf#L58
configuration_id
是这样的:
https://github.com/terraform-providers/terraform-provider-oci/blob/master/examples/mysql/main.tf#L98
Terraform 在创建资源 oci_audit_configuration
时超时(意味着 oci_mysql_mysql_db_system
的依赖项)。我不明白为什么。
mysql.tf:
resource "oci_audit_configuration" "configuration" {
compartment_id = var.tenancy_ocid
retention_period_days = var.configuration_retention_period_days
}
导致:
Error: Timed out waiting for configuration to reach specified condition.
on ../modules/mysql/mysql.tf line 1, in resource "oci_audit_configuration" "configuration":
1: resource "oci_audit_configuration" "configuration" {
oci_mysql_mysql_db_system
的 configuration_id
不是 oci_audit_configuration
。
您可以在此处查看如何创建 oci_mysql_mysql_db_system
的示例:
https://github.com/terraform-providers/terraform-provider-oci/blob/master/examples/mysql/main.tf#L58
configuration_id
是这样的:
https://github.com/terraform-providers/terraform-provider-oci/blob/master/examples/mysql/main.tf#L98