Skip to content

Commit cb30d5d

Browse files
author
Yi Fan
committed
Support resource discovery for dataflow resources
1 parent d9548dc commit cb30d5d

File tree

4 files changed

+25
-0
lines changed

4 files changed

+25
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
- Support for patch and patch history in `database_vm_cluster`
1111
- Support resource discovery for `monitoring` resources
1212
- Support resource discovery for `identity` resources
13+
- Support resource discovery for `dataflow` resources
1314

1415
## 3.79.0 (June 03, 2020)
1516

oci/export_definitions.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
oci_containerengine "github.com/oracle/oci-go-sdk/containerengine"
1111
oci_core "github.com/oracle/oci-go-sdk/core"
1212
oci_database "github.com/oracle/oci-go-sdk/database"
13+
oci_dataflow "github.com/oracle/oci-go-sdk/dataflow"
1314
oci_dns "github.com/oracle/oci-go-sdk/dns"
1415
oci_email "github.com/oracle/oci-go-sdk/email"
1516
oci_events "github.com/oracle/oci-go-sdk/events"
@@ -597,6 +598,17 @@ var exportDatabaseVmClusterHints = &TerraformResourceHints{
597598
},
598599
}
599600

601+
var exportDataflowApplicationHints = &TerraformResourceHints{
602+
resourceClass: "oci_dataflow_application",
603+
datasourceClass: "oci_dataflow_applications",
604+
datasourceItemsAttr: "applications",
605+
resourceAbbreviation: "application",
606+
requireResourceRefresh: true,
607+
discoverableLifecycleStates: []string{
608+
string(oci_dataflow.ApplicationLifecycleStateActive),
609+
},
610+
}
611+
600612
var exportDnsRecordHints = &TerraformResourceHints{
601613
resourceClass: "oci_dns_record",
602614
datasourceClass: "oci_dns_records",

oci/export_graphs.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ var compartmentResourceGraphs = map[string]TerraformResourceGraph{
5353
"containerengine": containerengineResourceGraph,
5454
"core": coreResourceGraph,
5555
"database": databaseResourceGraph,
56+
"dataflow": dataflowResourceGraph,
5657
"dns": dnsResourceGraph,
5758
"email": emailResourceGraph,
5859
"events": eventsResourceGraph,
@@ -281,6 +282,12 @@ var databaseResourceGraph = TerraformResourceGraph{
281282
},
282283
}
283284

285+
var dataflowResourceGraph = TerraformResourceGraph{
286+
"oci_identity_compartment": {
287+
{TerraformResourceHints: exportDataflowApplicationHints},
288+
},
289+
}
290+
284291
var dnsResourceGraph = TerraformResourceGraph{
285292
"oci_identity_compartment": {
286293
{TerraformResourceHints: exportDnsZoneHints},

website/docs/guides/resource_discovery.html.markdown

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ The generated `.tf` files contain the Terraform configuration with the resources
9898
* `containerengine` - Discovers containerengine resources within the specified compartment
9999
* `core` - Discovers compute, block storage, and networking resources within the specified compartment
100100
* `database` - Discovers database resources within the specified compartment
101+
* `dataflow` - Discovers dataflow resources within the specified compartment
101102
* `dns` - Discovers dns resources (except record) within the specified compartment
102103
* `email` - Discovers email resources within the specified compartment
103104
* `events` - Discovers events resources within the specified compartment
@@ -273,6 +274,10 @@ database
273274
* oci\_database\_vm\_cluster\_network
274275
* oci\_database\_vm\_cluster
275276

277+
dataflow
278+
279+
* oci\_dataflow\_application
280+
276281
dns
277282

278283
* oci\_dns\_zone

0 commit comments

Comments
 (0)