diff --git a/TODO.md b/TODO.md index 05fd765..8d54b8e 100644 --- a/TODO.md +++ b/TODO.md @@ -10,5 +10,4 @@ General TODO file of things left to implement. Entities: - x-cortex-infra (AWS, GCP, etc) -- OpenAPI docs - Packages diff --git a/docs/resources/catalog_entity_openapi.md b/docs/resources/catalog_entity_openapi.md new file mode 100644 index 0000000..f223c08 --- /dev/null +++ b/docs/resources/catalog_entity_openapi.md @@ -0,0 +1,25 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "cortex_catalog_entity_openapi Resource - terraform-provider-cortex" +subcategory: "" +description: |- + Manages OpenAPI specifications for Cortex catalog entities. +--- + +# cortex_catalog_entity_openapi (Resource) + +Manages OpenAPI specifications for Cortex catalog entities. + + + + +## Schema + +### Required + +- `entity_tag` (String) The tag or ID of the catalog entity that the OpenAPI specification will be associated with. +- `spec` (String) The OpenAPI specification in YAML or JSON format. + +### Read-Only + +- `id` (String) The ID of the OpenAPI specification. diff --git a/examples/resources/catalog_entity_openapi/resource.tf b/examples/resources/catalog_entity_openapi/resource.tf new file mode 100644 index 0000000..915fd41 --- /dev/null +++ b/examples/resources/catalog_entity_openapi/resource.tf @@ -0,0 +1,35 @@ +terraform { + required_providers { + cortex = { + source = "cortexlocal/cortex" + } + } +} + +provider "cortex" { + token = "access-token-here" +} + +resource "cortex_catalog_entity_openapi" "test_service_oas1" { + entity_tag = "test-service" + spec = <