Skip to content

Commit

Permalink
terraform resources module
Browse files Browse the repository at this point in the history
  • Loading branch information
maorfr committed Jul 9, 2024
1 parent aa3713b commit 030e0a0
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
20 changes: 20 additions & 0 deletions graphql-schemas/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1938,6 +1938,7 @@ confs:
rosa-authenticator: NamespaceTerraformResourceRosaAuthenticator_V1
rosa-authenticator-vpce: NamespaceTerraformResourceRosaAuthenticatorVPCE_V1
msk: NamespaceTerraformResourceMsk_v1
module: NamespaceTerraformResourceModule_v1
fields:
- { name: provider, type: string, isRequired: true }
- { name: identifier, type: string, isRequired: true }
Expand Down Expand Up @@ -2488,6 +2489,25 @@ confs:
- { name: query, type: string }
- { name: status_code, type: string }

- name: NamespaceTerraformResourceModule_v1
interface: NamespaceTerraformResourceAWS_v1
fields:
- { name: provider, type: string, isRequired: true, isContextUnique: true }
- { name: region, type: string, isContextUnique: true }
- { name: identifier, type: string, isRequired: true, isContextUnique: true }
- { name: defaults, type: string, isRequired: true, isResource: true }
- { name: overrides, type: json }
- { name: output_resource_name, type: string }
- { name: output_format, type: NamespaceTerraformResourceOutputFormat_v1, isInterface: true }
- { name: annotations, type: json }
- { name: module, type: NamespaceTerraformResourceModuleSpec_v1, isRequired: true }

- name: NamespaceTerraformResourceModuleSpec_v1
fields:
- { name: url, type: string, isRequired: true }
- { name: path, type: string, isRequired: true }
- { name: ref, type: string, isRequired: true }

- name: ResourceValues_v1
fields:
- { name: cpu, type: string }
Expand Down
43 changes: 43 additions & 0 deletions schemas/aws/terraform-resource-2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,16 @@ properties:
delete:
type: boolean
description: Flag to delete the resource
module:
type: object
additionalProperties: false
properties:
url:
type: string
path:
type: string
ref:
type: string


oneOf:
Expand Down Expand Up @@ -1576,5 +1586,38 @@ oneOf:
required:
- identifier
- defaults
- additionalProperties: false
properties:
provider:
type: string
enum:
- module
region:
"$ref": "/aws/regions-1.yml#/properties/region"
identifier:
"$ref": "/common-1.json#/definitions/longIdentifier"
output_resource_name:
"$ref": "/common-1.json#/definitions/longIdentifier"
output_format:
"$ref": "/openshift/terraform-output-format-1.yml"
defaults:
"$ref": "/common-1.json#/definitions/resourceref"
overrides:
type: object
annotations:
"$ref": "/common-1.json#/definitions/annotations"
module:
type: object
additionalProperties: false
properties:
url:
type: string
path:
type: string
ref:
type: string
required:
- identifier
- module
required:
- provider

0 comments on commit 030e0a0

Please sign in to comment.