diff --git a/connection-interface/connection-interface-schema.json b/connection-interface/connection-interface-schema.json new file mode 100644 index 0000000..3c1de51 --- /dev/null +++ b/connection-interface/connection-interface-schema.json @@ -0,0 +1,62 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "type": "object", + "properties": { + "schema-version": { + "type": "string" + }, + "kind": { + "type": "string", + "enum": [ + "connection-interface" + ] + }, + "metadata": { + "type": "object", + "properties": { + "name": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "aws-ecs-conn", + "aws-rds-conn" + ] + } + } + }, + "description": { + "type": "string" + }, + "version": { + "type": "string", + "pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$" + } + }, + "required": [ + "name", + "description", + "version" + ] + }, + "spec": { + "outputs": { + "type": "array", + "items": { + "type": { + "type": "string", + "enum": [ + "boolean", + "secret", + "objecy", + "array", + "number", + "string" + ] + } + } + } + } + } +} \ No newline at end of file diff --git a/connection-interface/v1/aws-ecs-conn.yaml b/connection-interface/v1/aws-ecs-conn.yaml new file mode 100644 index 0000000..ad71f58 --- /dev/null +++ b/connection-interface/v1/aws-ecs-conn.yaml @@ -0,0 +1,24 @@ +schemaVersion: v1 +kind: connection-interface +metadata: + name: aws-ecs-conn + description: Connection Interface for AWS ECS + version: 1.0.0 +spec: + outputs: + autoscaling_capacity_providers: + type: array + items: + autoscaling_capacity_provider: + type: string + cluster_arn: + type: secret + cluster_capacity_providers: + type: array + items: + cluster_capacity_provider: + type: string + cluster_id: + type: secret + cluster_name: + type: string diff --git a/connection-interface/v1/aws-rds-conn.yaml b/connection-interface/v1/aws-rds-conn.yaml new file mode 100644 index 0000000..5db05d2 --- /dev/null +++ b/connection-interface/v1/aws-rds-conn.yaml @@ -0,0 +1,22 @@ +schemaVersion: v1 +kind: connection-interface +metadata: + name: aws-rds-conn + description: Connection Interface for AWS RDS + version: 1.0.0 +spec: + outputs: + type: + type: string + name: + type: string + host: + type: string + port: + type: string + user: + type: string + pass: + type: secret + policy: + type: secret