cisco-open / terraform-provider-dcloud

Terraform provider to manage Topologies, Networks, VMs, and Hardware using the Cisco dCloud Topology Builder
Mozilla Public License 2.0
2 stars 2 forks source link

Added "Documentation" feature #25

Closed mohith10 closed 12 months ago

mohith10 commented 12 months ago

Description

The documentation feature helps us provide a URL for documentation of the specific topology deployed on TB. This PR implements that feature. The following modifications have been made:

  1. Modified "provider.go": Added a mapping to "resource_documentation.go"

  2. Created "resource.documentation.go": Supports CRUD operations of the documentation resource.

  3. Modified /examples/provider/provider.tf: Added a documentation resource that assigns the provided URL to the topology.

  4. Created /examples/hw_documentation/resource.tf: resource.tf script that creates a topology and assigns the documentation URL.

  5. Added docs/resources/documentation.md: Specifying the schema of the documentation resource.

Type of Change

Checklist