Skip to content

Commit

Permalink
Add callout and modify content for S3 datasource (#1111)
Browse files Browse the repository at this point in the history
* Add callout and modify content for S3 datasource

Signed-off-by: Derek Ho <[email protected]>

* Update s3 documentation

Signed-off-by: Derek Ho <[email protected]>

---------

Signed-off-by: Derek Ho <[email protected]>
  • Loading branch information
derek-ho authored Oct 11, 2023
1 parent f981407 commit 1a73071
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
3 changes: 3 additions & 0 deletions common/constants/data_connections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ import { DatasourceType } from '../../common/types/data_connections';
export const OPENSEARCH_DOCUMENTATION_URL =
'https://opensearch.org/docs/latest/dashboards/management/data-sources/';

export const OPENSEARCH_S3_DOCUMENTATION_URL =
'https://opensearch.org/docs/latest/dashboards/management/S3-data-source/';

export const OPENSEARCH_ACC_DOCUMENTATION_URL =
'https://opensearch.org/docs/latest/data-acceleration/index';
export const QUERY_RESTRICTED = 'query-restricted';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ import {
EuiFieldText,
EuiTextArea,
EuiSelect,
EuiCallOut,
} from '@elastic/eui';
import React, { useState } from 'react';
import {
AuthMethod,
OPENSEARCH_DOCUMENTATION_URL,
OPENSEARCH_S3_DOCUMENTATION_URL,
} from '../../../../../common/constants/data_connections';
import { QueryPermissionsConfiguration } from './query_permissions';
import { Role } from '../../../../../common/types/data_connections';
Expand Down Expand Up @@ -87,11 +88,20 @@ export const ConfigureS3Datasource = (props: ConfigureS3DatasourceProps) => {
</EuiTitle>
<EuiSpacer size="s" />
<EuiText size="s" color="subdued">
{`Connect to S3 with OpenSearch and OpenSearch Dashboards. `}
<EuiLink external={true} href={OPENSEARCH_DOCUMENTATION_URL} target="blank">
{`Connect to Amazon S3 via AWS Glue with Amazon EMR as an execution engine. `}
<EuiLink external={true} href={OPENSEARCH_S3_DOCUMENTATION_URL} target="blank">
Learn more
</EuiLink>
</EuiText>
<EuiSpacer size="s" />
<EuiCallOut title="Setup Amazon EMR as execution engine first" iconType="iInCircle">
<EuiText size="s" color="subdued">
{`Connect to Amazon S3 via AWS Glue with Amazon EMR as an execution engine. `}
<EuiLink external={true} href={OPENSEARCH_S3_DOCUMENTATION_URL} target="blank">
Learn more
</EuiLink>
</EuiText>
</EuiCallOut>
<EuiSpacer />
<EuiText>
<h3>Data source details</h3>
Expand Down

0 comments on commit 1a73071

Please sign in to comment.