Skip to content

Commit 0871498

Browse files
authored
Merge pull request #208 from NetApp/fix-wrong-readme-file-update
fix wrong readme file update
2 parents 17910fb + fd02036 commit 0871498

File tree

2 files changed

+79
-126
lines changed

2 files changed

+79
-126
lines changed

AI/GenAI-ChatBot-application-sample/README.md

Lines changed: 15 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,18 @@ To get started, you need to configure one of the supported login providers. Conf
3737
- NEXT_PUBLIC_AWS_USER_POOLS_ID=YOUR_AWS_USER_POOLS_ID
3838
- NEXT_PUBLIC_AWS_USER_WEB_CLIENT_ID=YOUR_AWS_USER_WEB_CLIENT_ID
3939

40+
#### Configure Active Directory with Amazon Cognito
41+
1. To integrate Active Directory with Amazon Cognito, follow the [A guide to AD FS federation with Amazon Cognito user pools instructions (Steps 1 to 4)](https://aws.amazon.com/blogs/security/simplify-web-app-authentication-a-guide-to-ad-fs-federation-with-amazon-cognito-user-pools/).
42+
2. To configure SAML request signing, follow the instructions in [Signing SAML requests](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-SAML-signing-encryption.html#cognito-user-pools-SAML-signing).
43+
3. Specify the federated identity provider and authorization by adding the following variables to the `.env.local` file, with values that match your environment.
44+
- NEXT_PUBLIC_LOGIN_EXTERNAL_PROVIDER=YOUR_COGNITO_IDENTITY_PROVIDER_NAME
45+
- NEXT_PUBLIC_AWS_OAUTH={"domain":"<DOMAIN_PREFIX>.auth.<REGION>.amazoncognito.com","scope":["openid", "profile", "email"],"redirectSignIn":"http://localhost:9091","redirectSignOut":"http://localhost:9091","responseType":"code"}
46+
- Domain - The domain for your Cognito user pool.
47+
- Scope - Scopes specifying the access privileges.
48+
- redirectSignIn - The URL to redirect to after a successful sign-in.
49+
- redirectSignOut - The URL to redirect to after a successful sign-out.
50+
- responseType - The type of response to receive from the authorization server.
51+
4052
### Set up Clerk
4153
1. Follow the [Sign up](https://dashboard.clerk.com/sign-in?redirect_url=https%3A%2F%2Fdashboard.clerk.com%2F) instructions to sign up for a Clerk account.
4254
2. Download and unpack the Workload Factory GenAI sample application source package.
@@ -49,21 +61,8 @@ To get started, you need to configure one of the supported login providers. Conf
4961
- CLERK_SECRET_KEY=YOUR_CLERK_SECRET_KEY
5062
- NEXT_PUBLIC_CLERK_TEMPLATE=YOUR_CLERK_TEMPLATE
5163

52-
## Download the application
53-
To download the application, clone the GitHub repository. Then, change to the sample application directory so that you can build or run it:
54-
55-
1.
56-
```bash
57-
git clone https://github.com/NetApp/FSx-ONTAP-samples-scripts
58-
```
59-
60-
2.
61-
```bash
62-
cd FSx-ONTAP-samples-scripts/AI/GenAI-ChatBot-application-sample
63-
```
64-
65-
## Install dependencies
66-
To install dependencies for the sample application, run the following command:
64+
## Install the application
65+
To install the sample application, run the following command:
6766

6867
```bash
6968
npm install
@@ -91,21 +90,4 @@ npm run build
9190
- Learn more about the APIs used in this sample application by visiting the [Workload Factory API documentation](https://console.workloads.netapp.com/api-doc).
9291
- To learn more about Next.js, take a look at the following resources:
9392
- [Next.js documentation](https://nextjs.org/docs) - learn about Next.js features and API.
94-
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
95-
96-
## Author Information
97-
98-
This repository is maintained by the contributors listed on [GitHub](https://github.com/NetApp/FSx-ONTAP-samples-scripts/graphs/contributors).
99-
100-
## License
101-
102-
Licensed under the Apache License, Version 2.0 (the "License").
103-
104-
You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0).
105-
106-
Unless required by applicable law or agreed to in writing, software distributed under the License
107-
is distributed on an _"AS IS"_ basis, without WARRANTIES or conditions of any kind, either express or implied.
108-
109-
See the License for the specific language governing permissions and limitations under the License.
110-
111-
© 2024 NetApp, Inc. All Rights Reserved.
93+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

README.md

Lines changed: 64 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,64 @@
1-
# NetApp Workload Factory GenAI sample application
2-
3-
## Introduction
4-
The NetApp Workload Factory GenAI sample application enables external application developers to test authentication and retrieval from a published NetApp Workload Factory knowledge base by interacting directly with it in a web-based chatbot application. Its features are similar to the chatbot interface within the NetApp Workload Factory UI, and it uses the same Workload Factory API for conversations. As a developer, you can use this sample application to test published knowledge bases and see API examples that can help you develop your own chatbot application.
5-
6-
## Application components
7-
The NetApp Workload Factory GenAI sample application is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
8-
9-
The sample application uses [Redux Toolkit](https://redux-toolkit.js.org) with [RTK Query](https://redux-toolkit.js.org/tutorials/rtk-query) for data fetching.
10-
11-
## Requirements
12-
- [Node.js](https://nodejs.org/) 18.17 or later stable version.
13-
- The NetApp Workload Factory GenAI sample application relies on one of the following login providers:
14-
- [Amazon Cognito](https://aws.amazon.com/cognito/) + [Amazon Amplify Framework](https://aws-amplify.github.io/docs/js/start)
15-
- [Clerk](https://clerk.com/)
16-
- You need a knowledge base created with NetApp Workload Factory GenAI that is configured for active authentication and published:
17-
- [Activate external authentication for a knowledge base](https://docs.netapp.com/us-en/workload-genai/activate-authentication.html)
18-
- [Publish a knowledge base](https://docs.netapp.com/us-en/workload-genai/publish-knowledgebase.html)
19-
- You need the ID of the published knowledge base. You can find the knowledge base ID on the **Knowledge bases > Manage knowledge base** page in Workload Factory GenAI, or you can work with the person that created the knowledge base.
20-
21-
## Set up login providers
22-
To get started, you need to configure one of the supported login providers. Configure the same login provider (issuer) that is used by the knowledge base that will integrate with the sample chatbot application.
23-
24-
### Set up AWS Cognito
25-
1. Follow the [Create user pool](https://www.cognitobuilders.training/20-lab1/20-setup-and-explore/10-create-userpool/) instructions to create a Cognito user pool.
26-
2. Use the Amazon Cognito documentation to find your user pool ID and user web client ID:
27-
1. [Find your user pool ID](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cognito-idp/list-user-pools.html).
28-
For example: `aws cognito-idp list-user-pools --max-results=60 --output=table`
29-
2. [Find your web client ID](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cognito-idp/list-user-pool-clients.html).
30-
For example: `aws cognito-idp list-user-pool-clients --user-pool-id $(USER_POOL_ID) --output=table`
31-
3. Download and unpack the Workload Factory GenAI sample application source package.
32-
4. In the Workload Factory GenAI sample application source, rename the `.env.local.sample` file to `.env.local`.
33-
5. In the `.env.local` file, uncomment the corresponding section for the login provider you plan to use, and make sure the section for the other provider is commented out.
34-
6. In the `.env.local` file, change the following variables in the appropriate provider section to match your environment. Replace `YOUR_KNOWLEDGE_BASE_ID` with the knowledge base ID from Workload Factory:
35-
- NEXT_PUBLIC_LOGIN_PROVIDER=cognito
36-
- NEXT_PUBLIC_KNOWLEDGE_BASE_ID=YOUR_KNOWLEDGE_BASE_ID
37-
- NEXT_PUBLIC_AWS_USER_POOLS_ID=YOUR_AWS_USER_POOLS_ID
38-
- NEXT_PUBLIC_AWS_USER_WEB_CLIENT_ID=YOUR_AWS_USER_WEB_CLIENT_ID
39-
40-
#### Configure Active Directory with Amazon Cognito
41-
1. To integrate Active Directory with Amazon Cognito, follow the [A guide to AD FS federation with Amazon Cognito user pools instructions (Steps 1 to 4)](https://aws.amazon.com/blogs/security/simplify-web-app-authentication-a-guide-to-ad-fs-federation-with-amazon-cognito-user-pools/).
42-
2. To configure SAML request signing, follow the instructions in [Signing SAML requests](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-SAML-signing-encryption.html#cognito-user-pools-SAML-signing).
43-
3. Specify the federated identity provider and authorization by adding the following variables to the `.env.local` file, with values that match your environment.
44-
- NEXT_PUBLIC_LOGIN_EXTERNAL_PROVIDER=YOUR_COGNITO_IDENTITY_PROVIDER_NAME
45-
- NEXT_PUBLIC_AWS_OAUTH={"domain":"<DOMAIN_PREFIX>.auth.<REGION>.amazoncognito.com","scope":["openid", "profile", "email"],"redirectSignIn":"http://localhost:9091","redirectSignOut":"http://localhost:9091","responseType":"code"}
46-
- Domain - The domain for your Cognito user pool.
47-
- Scope - Scopes specifying the access privileges.
48-
- redirectSignIn - The URL to redirect to after a successful sign-in.
49-
- redirectSignOut - The URL to redirect to after a successful sign-out.
50-
- responseType - The type of response to receive from the authorization server.
51-
52-
### Set up Clerk
53-
1. Follow the [Sign up](https://dashboard.clerk.com/sign-in?redirect_url=https%3A%2F%2Fdashboard.clerk.com%2F) instructions to sign up for a Clerk account.
54-
2. Download and unpack the Workload Factory GenAI sample application source package.
55-
3. In the Workload Factory GenAI sample application source, rename the `.env.local.sample` file to `.env.local`.
56-
4. In the `.env.local` file, uncomment the corresponding section for the login provider you plan to use, and make sure the section for the other provider is commented out.
57-
5. In the `.env.local` file, change the following variables in the appropriate provider section to match your environment. Replace `YOUR_KNOWLEDGE_BASE_ID` with the knowledge base ID from Workload Factory:
58-
- NEXT_PUBLIC_LOGIN_PROVIDER=clerk
59-
- NEXT_PUBLIC_KNOWLEDGE_BASE_ID=YOUR_KNOWLEDGE_BASE_ID
60-
- NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=YOUR_NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY
61-
- CLERK_SECRET_KEY=YOUR_CLERK_SECRET_KEY
62-
- NEXT_PUBLIC_CLERK_TEMPLATE=YOUR_CLERK_TEMPLATE
63-
64-
## Install the application
65-
To install the sample application, run the following command:
66-
67-
```bash
68-
npm install
69-
```
70-
71-
## Run the application
72-
1. To run the application locally, run the following command:
73-
74-
```bash
75-
npm run dev
76-
```
77-
78-
2. Open [http://localhost:9091](http://localhost:9091) with your browser to log in to the application.
79-
80-
## Build the application
81-
To build bundle.js, run the following command:
82-
83-
```bash
84-
npm run build
85-
```
86-
87-
## Learn More
88-
89-
- Learn more about [BlueXP Workload Factory for AWS](https://docs.netapp.com/us-en/workload-genai/index.html).
90-
- Learn more about the APIs used in this sample application by visiting the [Workload Factory API documentation](https://console.workloads.netapp.com/api-doc).
91-
- To learn more about Next.js, take a look at the following resources:
92-
- [Next.js documentation](https://nextjs.org/docs) - learn about Next.js features and API.
93-
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
1+
# FSx-ONTAP-samples-scripts
2+
3+
FSx for NetApp ONTAP is an AWS service providing a comprehensive set of advanced storage features purposely
4+
built to maximize cost performance, resilience, and accessibility in business-critical workloads.
5+
6+
## Overview
7+
8+
This GitHub repository contains comprehensive code samples and automation scripts for FSx for Netapp ONTAP operations,
9+
promoting the use of Infrastructure as Code (IAC) tools and encouraging developers to extend the product's
10+
functionalities through code. The samples here go alongside the automation, management and monitoring that
11+
[BlueXP Workload Factory](https://console.workloads.netapp.com) provides.
12+
13+
We welcome contributions from the community! Please read our [contribution guidelines](CONTRIBUTING.md) before getting started.
14+
15+
Have a great idea? We'd love to hear it! Please email us at [[email protected]](mailto:[email protected]).
16+
17+
## Table of Contents
18+
19+
* [AI](/AI)
20+
* [GenAI ChatBot application sample](/AI/GenAI-ChatBot-application-sample)
21+
* [Anisble](/Ansible)
22+
* [FSx ONTAP inventory report](/Ansible/fsx_inventory_report)
23+
* [SnapMirror report](/Ansible/snapmirror_report)
24+
* [CloudFormation](/CloudFormation)
25+
* [deploy-fsx-ontap](/CloudFormation/deploy-fsx-ontap)
26+
* [EKS](/EKS)
27+
* [FSx for NetApp ONTAP as persistent storage for EKS](/EKS/FSxN-as-PVC-for-EKS)
28+
* [Management Utilities](/Management-Utilities)
29+
* [Auto Create SnapMirror Relationships](/Management-Utilities/auto_create_sm_relationships)
30+
* [Auto Set FSxN Auto Grow](/Management-Utilities/auto_set_fsxn_auto_grow)
31+
* [AWS CLI management scripts for FSx ONTAP](/Management-Utilities/fsx-ontap-aws-cli-scripts)
32+
* [Rotate AWS Secrets Manager Secret](/Management-Utilities/fsxn-rotate-secret)
33+
* [FSx ONTAP iscsi volume creation automation for Windows](/Management-Utilities/iscsi-vol-create-and-mount)
34+
* [Warm Performance Tier](/Management-Utilities/warm_performance_tier)
35+
* [Monitoring](/Monitoring)
36+
* [CloudWatch Dashboard for FSx for ONTAP](/Monitoring/CloudWatch-FSx)
37+
* [Export LUN metrics from an FSx ONTAP to Amazon CloudWatch](/Monitoring/LUN-monitoring)
38+
* [Automatically Add CloudWatch Alarms for FSx Resources](/Monitoring/auto-add-cw-alarms)
39+
* [Monitor ONTAP metrics from FSx ONTAP using python Lambda function](/Monitoring/monitor-ontap-services)
40+
* [Monitor FSx for ONTAP with Harvest on EKS](/Monitoring/monitor_fsxn_with_harvest_on_eks)
41+
* [Solutions](/Solutions)
42+
* [k8s applications non-stdout logs collection into ELK](/Solutions/EKS-logs-to-ELK)
43+
* [Terraform](/Terraform)
44+
* [FSx ONTAP deployment using Terraform](/Terraform/deploy-fsx-ontap)
45+
* [FSx ONTAP Replication](/Terraform/fsxn-replicate)
46+
* [Deployment of SQL Server on EC2 with FSx ONTAP](/Terraform/deploy-fsx-ontap-sqlserver)
47+
* [Deployment of FSx ONTAP with VPN for File Share Access](/Terraform/deploy-fsx-ontap-fileshare-access)
48+
49+
## Author Information
50+
51+
This repository is maintained by the contributors listed on [GitHub](https://github.com/NetApp/FSx-ONTAP-samples-scripts/graphs/contributors).
52+
53+
## License
54+
55+
Licensed under the Apache License, Version 2.0 (the "License").
56+
57+
You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0).
58+
59+
Unless required by applicable law or agreed to in writing, software distributed under the License
60+
is distributed on an _"AS IS"_ basis, without WARRANTIES or conditions of any kind, either express or implied.
61+
62+
See the License for the specific language governing permissions and limitations under the License.
63+
64+
© 2024 NetApp, Inc. All Rights Reserved.

0 commit comments

Comments
 (0)