Skip to content

Commit 2ca0c81

Browse files
committed
feat: Add Meroxa workflows
1 parent 98777eb commit 2ca0c81

10 files changed

Lines changed: 511 additions & 0 deletions
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
# The name of the workflow.
3+
name: Add a Google BigQuery resource to the Meroxa Platform
4+
# The corresponding command for the workflow. Any arguments should be surrounded with two curly braces. E.g `command {{arg}}`.
5+
command: |-
6+
meroxa resources create {{resource_name}} --type bigquery --url "bigquery://{{gcp_project_id}}/{{gcp_dataset_name}}" --client-key "$(cat {{gcp_service_account_json_file}})"
7+
# Any tags that the workflow should be categorized with.
8+
tags:
9+
- meroxa
10+
- data
11+
- realtime
12+
# A description of the workflow.
13+
description: "Add a Google BigQuery resource to the Meroxa Platform using the following parameters:"
14+
# List of arguments within the command.
15+
arguments:
16+
# Name of the argument within the command. This must exactly match the name of the argument
17+
# within the command (without the curly braces).
18+
- name: resource_name
19+
# The description of the argument.
20+
description: Name you want to use to identify this Google BigQuery resource
21+
# The default value for the argument.
22+
default_value: ~
23+
- name: gcp_project_id
24+
# The description of the argument.
25+
description: Google Cloud Project ID
26+
# The default value for the argument.
27+
default_value: ~
28+
- name: gcp_dataset_name
29+
# The description of the argument.
30+
description: Your BigQuery dataset name. GCP console will indicate your dataset ID as "project_id.dataset_name". Just include your dataset name here
31+
# The default value for the argument.
32+
default_value: bigquery://$GCP_PROJECT_ID/$GCP_DATASET_NAME
33+
- name: gcp_service_account_json_file
34+
# The description of the argument.
35+
description: Google BigQuery Valid Service Account credentials with access to BigQuery in JSON format
36+
# The default value for the argument.
37+
default_value: ~
38+
# The source URL for where the workflow was generated from, if any.
39+
source_url: "https://docs.meroxa.com/platform/resources/google-bigquery#resource-configuration"
40+
# The author of the workflow.
41+
author: Meroxa
42+
# The URL of original author of the Workflow. For example, if this workflow was generated from StackOverflow, the `author_url` would be the StackOverflow author's profile page.
43+
author_url: "https://github.com/meroxa"
44+
# The valid shells where this workflow should be active. If valid for all shells, this can be left empty.
45+
# See FORMAT.md for the full list of accepted values.
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
# The name of the workflow.
3+
name: Add an Elasticsearch resource to the Meroxa Platform
4+
# The corresponding command for the workflow. Any arguments should be surrounded with two curly braces. E.g `command {{arg}}`.
5+
command: |-
6+
meroxa resources create {{resource_name}} --type elasticsearch --url "https://{{es_username}}:{{es_password}}@{{es_url}}:{{es_port}}" --metadata '{"index.prefix": "{{es_index}}","incrementing.field.name": "{{es_incrementing_field}}"}'
7+
# Any tags that the workflow should be categorized with.
8+
tags:
9+
- meroxa
10+
- data
11+
- realtime
12+
# A description of the workflow.
13+
description: "Add an Elasticsearch resource to the Meroxa Platform using the following parameters:"
14+
# List of arguments within the command.
15+
arguments:
16+
# Name of the argument within the command. This must exactly match the name of the argument
17+
# within the command (without the curly braces).
18+
- name: resource_name
19+
# The description of the argument.
20+
description: Name you want to use to identify this resource
21+
# The default value for the argument.
22+
default_value: ~
23+
- name: es_username
24+
description: Elasticsearch Username
25+
- name: es_password
26+
description: Elasticsearch Password
27+
- name: es_url
28+
# The description of the argument.
29+
description: Elasticsearch URL
30+
- name: es_port
31+
# The description of the argument.
32+
description: "Elasticsearch port (e.g.: 9200)"
33+
# The default value for the argument.
34+
default_value: 9200
35+
- name: es_index
36+
# The description of the argument.
37+
description: Elasticsearch Index
38+
# The default value for the argument.
39+
default_value: ~
40+
- name: es_incrementing_field
41+
# The description of the argument.
42+
description: Elasticsearch Incremental Field (See View Context for more information)
43+
# The default value for the argument.
44+
default_value: ~
45+
# The source URL for where the workflow was generated from, if any.
46+
source_url: "https://docs.meroxa.com/platform/resources/elasticsearch#setup"
47+
# The author of the workflow.
48+
author: Meroxa
49+
# The URL of original author of the Workflow. For example, if this workflow was generated from StackOverflow, the `author_url` would be the StackOverflow author's profile page.
50+
author_url: "https://github.com/meroxa"
51+
# The valid shells where this workflow should be active. If valid for all shells, this can be left empty.
52+
# See FORMAT.md for the full list of accepted values.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
# The name of the workflow.
3+
name: Add a MongoDB resource to the Meroxa Platform
4+
# The corresponding command for the workflow. Any arguments should be surrounded with two curly braces. E.g `command {{arg}}`.
5+
command: |-
6+
meroxa resources create {{resource_name}} --type mongodb -u "mongodb://{{mongodb_username}}:{{mongodb_password}}@{{mongodb_url}}:{{mongodb_port}}"
7+
# Any tags that the workflow should be categorized with.
8+
tags:
9+
- meroxa
10+
- data
11+
- realtime
12+
# A description of the workflow.
13+
description: "Add a MongoDB resource to the Meroxa Platform using the following parameters:"
14+
# List of arguments within the command.
15+
arguments:
16+
# Name of the argument within the command. This must exactly match the name of the argument
17+
# within the command (without the curly braces).
18+
- name: resource_name
19+
# The description of the argument.
20+
description: Name you want to use to identify this resource
21+
# The default value for the argument.
22+
default_value: ~
23+
- name: mongodb_username
24+
# The description of the argument.
25+
description: MongoDB Username
26+
default_value: ~
27+
- name: mongodb_password
28+
# The description of the argument.
29+
description: MongoDB Password
30+
default_value: ~
31+
- name: mongodb_url
32+
# The description of the argument.
33+
description: MongoDB URL
34+
default_value: ~
35+
- name: mongodb_port
36+
# The description of the argument.
37+
description: "MongoDB Port (e.g.: 27017)"
38+
default_value: 27017
39+
# The source URL for where the workflow was generated from, if any.
40+
source_url: "https://docs.meroxa.com/platform/resources/mongodb#setup"
41+
# The author of the workflow.
42+
author: Meroxa
43+
# The URL of original author of the Workflow. For example, if this workflow was generated from StackOverflow, the `author_url` would be the StackOverflow author's profile page.
44+
author_url: "https://github.com/meroxa"
45+
# The valid shells where this workflow should be active. If valid for all shells, this can be left empty.
46+
# See FORMAT.md for the full list of accepted values.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
# The name of the workflow.
3+
name: Add a MySQL resource to the Meroxa Platform
4+
# The corresponding command for the workflow. Any arguments should be surrounded with two curly braces. E.g `command {{arg}}`.
5+
command: |-
6+
meroxa resources create {{resource_name}} --type mysql -u "mysql://{{mysql_username}}:{{mysql_password}}@{{mysql_url}}:{{mysql_port}}/{{mysql_database_name}}"
7+
# Any tags that the workflow should be categorized with.
8+
tags:
9+
- meroxa
10+
- data
11+
- realtime
12+
# A description of the workflow.
13+
description: "Add a MySQL resource to the Meroxa Platform using the following parameters:"
14+
# List of arguments within the command.
15+
arguments:
16+
# Name of the argument within the command. This must exactly match the name of the argument
17+
# within the command (without the curly braces).
18+
- name: resource_name
19+
# The description of the argument.
20+
description: Name you want to use to identify this resource
21+
# The default value for the argument.
22+
default_value: ~
23+
- name: mysql_username
24+
# The description of the argument.
25+
description: MySQL Username
26+
# The default value for the argument.
27+
default_value: ~
28+
- name: mysql_password
29+
# The description of the argument.
30+
description: MySQL Password
31+
# The default value for the argument.
32+
default_value: ~
33+
- name: mysql_url
34+
# The description of the argument.
35+
description: MySQL URL
36+
# The default value for the argument.
37+
default_value: ~
38+
- name: mysql_port
39+
# The description of the argument.
40+
description: "MySQL Port (e.g.:3306)"
41+
# The default value for the argument.
42+
default_value: 3306
43+
- name: mysql_database_name
44+
# The description of the argument.
45+
description: MySQL database name
46+
# The default value for the argument.
47+
default_value: ~
48+
# The source URL for where the workflow was generated from, if any.
49+
source_url: "https://docs.meroxa.com/platform/resources/mysql/setup#resource-configuration"
50+
# The author of the workflow.
51+
author: Meroxa
52+
# The URL of original author of the Workflow. For example, if this workflow was generated from StackOverflow, the `author_url` would be the StackOverflow author's profile page.
53+
author_url: "https://github.com/meroxa"
54+
# The valid shells where this workflow should be active. If valid for all shells, this can be left empty.
55+
# See FORMAT.md for the full list of accepted values.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
# The name of the workflow.
3+
name: Add a Postgres resource with logical replication to the Meroxa Platform
4+
# The corresponding command for the workflow. Any arguments should be surrounded with two curly braces. E.g `command {{arg}}`.
5+
command: |-
6+
meroxa resources create {{resource_name}} --type postgres --url "postgres://{{pg_username}}:{{pg_password}}@{{pg_url}}:{{pg_port}}/{{pg_database_name}}" --metadata '{"logical_replication":"true"}'
7+
# Any tags that the workflow should be categorized with.
8+
tags:
9+
- meroxa
10+
- data
11+
- realtime
12+
# A description of the workflow.
13+
description: "Add a Postgres resource with logical replication to the Meroxa Platform using the following parameters:"
14+
# List of arguments within the command.
15+
arguments:
16+
# Name of the argument within the command. This must exactly match the name of the argument
17+
# within the command (without the curly braces).
18+
- name: resource_name
19+
# The description of the argument.
20+
description: Name you want to use to identify this resource
21+
# The default value for the argument.
22+
default_value: ~
23+
- name: pg_username
24+
# The description of the argument.
25+
description: Postgres Username
26+
# The default value for the argument.
27+
default_value: ~
28+
- name: pg_password
29+
# The description of the argument.
30+
description: Postgres Password
31+
# The default value for the argument.
32+
default_value: ~
33+
- name: pg_url
34+
# The description of the argument.
35+
description: Postgres URL
36+
# The default value for the argument.
37+
default_value: ~
38+
- name: pg_port
39+
# The description of the argument.
40+
description: "Postgres Port (e.g.: 5432)"
41+
# The default value for the argument.
42+
default_value: 5432
43+
- name: pg_database_name
44+
# The description of the argument.
45+
description: Postgres Database name
46+
# The default value for the argument.
47+
default_value: ~
48+
# The source URL for where the workflow was generated from, if any.
49+
source_url: "https://docs.meroxa.com/platform/resources/postgresql/setup#resource-configuration"
50+
# The author of the workflow.
51+
author: Meroxa
52+
# The URL of original author of the Workflow. For example, if this workflow was generated from StackOverflow, the `author_url` would be the StackOverflow author's profile page.
53+
author_url: "https://github.com/meroxa"
54+
# The valid shells where this workflow should be active. If valid for all shells, this can be left empty.
55+
# See FORMAT.md for the full list of accepted values.
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
# The name of the workflow.
3+
name: Add a Postgres resource to the Meroxa Platform without logical replication
4+
# The corresponding command for the workflow. Any arguments should be surrounded with two curly braces. E.g `command {{arg}}`.
5+
command: |-
6+
meroxa resources create {{resource_name}} --type postgres --url "postgres://{{pg_username}}:{{pg_password}}@{{pg_url}}:{{pg_port}}/{{pg_database_name}}"
7+
# Any tags that the workflow should be categorized with.
8+
tags:
9+
- meroxa
10+
- data
11+
- realtime
12+
# A description of the workflow.
13+
description: "Add a Postgres resource without logical replication to the Meroxa Platform using the following parameters:"
14+
# List of arguments within the command.
15+
arguments:
16+
# Name of the argument within the command. This must exactly match the name of the argument
17+
# within the command (without the curly braces).
18+
- name: resource_name
19+
# The description of the argument.
20+
description: Name you want to use to identify this resource
21+
# The default value for the argument.
22+
default_value: ~
23+
- name: pg_username
24+
# The description of the argument.
25+
description: Postgres Username
26+
# The default value for the argument.
27+
default_value: ~
28+
- name: pg_password
29+
# The description of the argument.
30+
description: Postgres Password
31+
# The default value for the argument.
32+
default_value: ~
33+
- name: pg_url
34+
# The description of the argument.
35+
description: Postgres URL
36+
# The default value for the argument.
37+
default_value: ~
38+
- name: pg_port
39+
# The description of the argument.
40+
description: "Postgres Port (e.g.: 5432)"
41+
# The default value for the argument.
42+
default_value: 5432
43+
- name: pg_database_name
44+
# The description of the argument.
45+
description: Postgres Database name
46+
# The default value for the argument.
47+
default_value: ~
48+
49+
# The source URL for where the workflow was generated from, if any.
50+
source_url: "https://docs.meroxa.com/platform/resources/postgresql/setup#resource-configuration"
51+
# The author of the workflow.
52+
author: Meroxa
53+
# The URL of original author of the Workflow. For example, if this workflow was generated from StackOverflow, the `author_url` would be the StackOverflow author's profile page.
54+
author_url: "https://github.com/meroxa"
55+
# The valid shells where this workflow should be active. If valid for all shells, this can be left empty.
56+
# See FORMAT.md for the full list of accepted values.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
# The name of the workflow.
3+
name: Add an Amazon Redshift resource to the Meroxa Platform
4+
# The corresponding command for the workflow. Any arguments should be surrounded with two curly braces. E.g `command {{arg}}`.
5+
command: |-
6+
meroxa resources create {{resource_name}} --type redshift --url "redshift://{{redshift_username}}:{{redshift_password}}@{{redshift_url}}:{{redshift_port}}/{{redshift_db_name}}"
7+
# Any tags that the workflow should be categorized with.
8+
tags:
9+
- meroxa
10+
- data
11+
- realtime
12+
# A description of the workflow.
13+
description: "Add an Amazon Redshift resource to the Meroxa Platform using the following parameters:"
14+
# List of arguments within the command.
15+
arguments:
16+
# Name of the argument within the command. This must exactly match the name of the argument
17+
# within the command (without the curly braces).
18+
- name: resource_name
19+
# The description of the argument.
20+
description: Name you want to use to identify this resource
21+
# The default value for the argument.
22+
default_value: ~
23+
- name: redshift_username
24+
# The description of the argument.
25+
description: Redshift username
26+
# The default value for the argument.
27+
default_value: ~
28+
- name: redshift_password
29+
# The description of the argument.
30+
description: Redshift password
31+
# The default value for the argument.
32+
default_value: ~
33+
- name: redshift_url
34+
# The description of the argument.
35+
description: Redshift URL
36+
# The default value for the argument.
37+
default_value: ~
38+
- name: redshift_port
39+
# The description of the argument.
40+
description: "Redshift Port (e.g.: 5439)"
41+
# The default value for the argument.
42+
default_value: 5439
43+
- name: redshift_db_name
44+
# The description of the argument.
45+
description: "Redshift Database name"
46+
# The default value for the argument.
47+
default_value: ~
48+
# The source URL for where the workflow was generated from, if any.
49+
source_url: "https://docs.meroxa.com/platform/resources/amazon-redshift#setup"
50+
# The author of the workflow.
51+
author: Meroxa
52+
# The URL of original author of the Workflow. For example, if this workflow was generated from StackOverflow, the `author_url` would be the StackOverflow author's profile page.
53+
author_url: "https://github.com/meroxa"
54+
# The valid shells where this workflow should be active. If valid for all shells, this can be left empty.
55+
# See FORMAT.md for the full list of accepted values.

0 commit comments

Comments
 (0)