Skip to content

Commit 65fdc44

Browse files
committed
Migrate CloudExadataInfrastructureExascaleConfig sample to steps schema format
1 parent b8c39af commit 65fdc44

2 files changed

Lines changed: 19 additions & 17 deletions

File tree

mmv1/products/oracledatabase/CloudExadataInfrastructureExascaleConfig.yaml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,21 @@ custom_code:
3636
decoder: templates/terraform/decoders/oracledatabase_cloud_exadata_infrastructure_exascale_config.go.tmpl
3737
custom_import: templates/terraform/custom_import/oracledatabase_cloud_exadata_infrastructure_exascale_config.go.tmpl
3838

39-
examples:
39+
samples:
4040
- name: oracledatabase_cloud_exadata_infrastructure_exascale_config_basic
41-
primary_resource_id: "my_exascale_config"
42-
vars:
43-
project: "my-project"
44-
cloud_exadata_infrastructure_id: "my-infra"
45-
deletion_protection: true
46-
ignore_read_extra:
47-
- "deletion_protection"
48-
test_vars_overrides:
49-
"deletion_protection": "false"
50-
"project": '"oci-terraform-testing-prod"'
51-
cloud_exadata_infrastructure_id: 'fmt.Sprintf("ofake-test-tf-configured-exadata-%s", acctest.RandString(t, 10))'
41+
primary_resource_id: my_exascale_config
42+
steps:
43+
- name: oracledatabase_cloud_exadata_infrastructure_exascale_config_basic
44+
resource_id_vars:
45+
project: my-project
46+
cloud_exadata_infrastructure_id: my-infra
47+
deletion_protection: true
48+
ignore_read_extra:
49+
- deletion_protection
50+
test_vars_overrides:
51+
deletion_protection: "false"
52+
project: '"oci-terraform-testing-prod"'
53+
cloud_exadata_infrastructure_id: fmt.Sprintf("ofake-test-tf-configured-exadata-%s", acctest.RandString(t, 10))
5254

5355
parameters:
5456
- name: project

mmv1/templates/terraform/examples/oracledatabase_cloud_exadata_infrastructure_exascale_config_basic.tf.tmpl renamed to mmv1/templates/terraform/samples/services/oracledatabase/oracledatabase_cloud_exadata_infrastructure_exascale_config_basic.tf.tmpl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
resource "google_oracle_database_cloud_exadata_infrastructure" "infra" {
2-
cloud_exadata_infrastructure_id = "{{index $.Vars "cloud_exadata_infrastructure_id"}}"
3-
display_name = "{{index $.Vars "cloud_exadata_infrastructure_id"}} displayname"
2+
cloud_exadata_infrastructure_id = "{{index $.ResourceIdVars "cloud_exadata_infrastructure_id"}}"
3+
display_name = "{{index $.ResourceIdVars "cloud_exadata_infrastructure_id"}} displayname"
44
location = "us-east4"
5-
project = "{{index $.Vars "project"}}"
5+
project = "{{index $.ResourceIdVars "project"}}"
66

77
properties {
88
shape = "Exadata.X9M"
99
compute_count = "2"
1010
storage_count = "3"
1111
}
1212

13-
deletion_protection = "{{index $.Vars "deletion_protection"}}"
13+
deletion_protection = "{{index $.ResourceIdVars "deletion_protection"}}"
1414
}
1515

1616
resource "google_oracle_database_cloud_exadata_infrastructure_exascale_config" "{{$.PrimaryResourceId}}" {
1717
cloud_exadata_infrastructure = google_oracle_database_cloud_exadata_infrastructure.infra.name
1818
location = "us-east4"
19-
project = "{{index $.Vars "project"}}"
19+
project = "{{index $.ResourceIdVars "project"}}"
2020
total_storage_size_gb = 10240
2121
}

0 commit comments

Comments
 (0)