Skip to content

Commit

Permalink
feat(datasources): add athena (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyozzz authored Apr 5, 2024
1 parent 1a4d9a8 commit 5993157
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/locales/en/dataSourceSelecton.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "New Data Source",
"text": "Spin up your deployment to start configuring your",
"subtitle": "Select Data Sourcess",
"subtitle": "Select Data Sources",
"search_placeholder": "Find"
}
1 change: 1 addition & 0 deletions src/assets/databases/athena.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/assets/databases/vertica.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions src/mocks/dataSources.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import Quest from "@/assets/databases/quest.svg";
import Snowflake from "@/assets/databases/snowflake.svg";
import Materialize from "@/assets/databases/materialize.svg";
import Vertica from "@/assets/databases/vertica.svg";
import Athena from "@/assets/databases/athena.svg";

export const dataSourcesMock: DataSourceInfo[] = [
{
Expand Down Expand Up @@ -137,6 +138,7 @@ export const dbTiles = [
{ name: "Snowflake", value: "snowflake", icon: <Snowflake /> },
{ name: "Materialize", value: "default", icon: <Materialize /> },
{ name: "Vertica", value: "vertica", icon: <Vertica /> },
{ name: "Athena", value: "athena", icon: <Athena /> },
];

export const defaultForm: DataSoureSetupField[] = [
Expand Down Expand Up @@ -663,4 +665,39 @@ export const dataSourceForms: Form = {
type: "password",
},
],
athena: [
{
name: "db_params.awsKey",
label: "aws_key",
rules: {
required: true,
},
placeholder: "AKIA***",
type: "text",
},
{
name: "db_params.awsSecret",
label: "aws_secret",
rules: {
required: true,
},
placeholder: "******",
type: "text",
},
{
name: "db_params.awsRegion",
label: "aws_region",
rules: {
required: true,
},
placeholder: "us-west-1",
type: "text",
},
{
name: "db_params.awsS3OutputLocation",
label: "awsS3OutputLocation",
placeholder: "s3://bucket/path",
type: "text",
},
],
};

0 comments on commit 5993157

Please sign in to comment.