Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
rev: v6.0.0
hooks:
- id: check-added-large-files
args: ["--maxkb=500"]
Expand All @@ -24,14 +24,14 @@ repos:
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- repo: https://github.com/gruntwork-io/pre-commit
rev: v0.1.10
rev: v0.1.30
hooks:
- id: shellcheck
exclude: |
(?x)^(
gradlew
)$
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.2.1
rev: v4.0.0-alpha.8
hooks:
- id: prettier
4 changes: 0 additions & 4 deletions webapp/docs/foresight-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ curl $FORESIGHT_API_BASE_URL/sage/application/ -H "Authorization: bearer $TOKEN"
The quickest way to get started is to use our Postman request collection. The following steps will help you get up and running.

1. **Import the CloudScend Foresight Postman Collection**

- <a
href={useBaseUrl("/data/foresight-api.postman_collection.json")}
download
Expand All @@ -75,7 +74,6 @@ The quickest way to get started is to use our Postman request collection. The fo
- From Postman, Import -> Select downloaded Foresight postman collection

2. **Configure Postman Environment**

- Setup a new environment in Postman. Click New -> Environment.
- Name the new environment _Foresight API_
- Add the following variables:
Expand All @@ -85,7 +83,6 @@ The quickest way to get started is to use our Postman request collection. The fo
- Click Add to create

3. **Authenticate**

- In the Authorization tab for the collection, select OAuth 2.0 from the Type dropdown list. By default Postman will append the access token to Bearer in the Authorization header for your request.
- To request an access token, fill out the fields in the Configure New Token section. There are several ways to configure based on the Grant Type you want to use. For the Password Credentials grant type enter the following details:
- Access Token URL: {{loginBaseUrl}}/auth/realms/appmod/protocol/openid-connect/token
Expand All @@ -100,7 +97,6 @@ The quickest way to get started is to use our Postman request collection. The fo
- View [Postman Documentation on OAuth2 Authentication](https://learning.postman.com/docs/sending-requests/authorization/#oauth-20) for more info.

4. **Explore the API**

- Execute any of the requests within the collection
- Refer to this documentation for the requirements of each request

Expand Down
5 changes: 0 additions & 5 deletions webapp/docs/foresight-install-ECS.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ sidebar_label: Installing CloudScend Foresight to AWS ECS
- You are familiar with AWS ECS Environments
- Access to functional AWS ECS Environment
- Technical Knowledge of the following

- Docker
- Docker Compose
- AWS
Expand Down Expand Up @@ -101,7 +100,6 @@ Additional information on installing AWS CLI is available at [AWS Amazon](https:
1. Obtain your deployment code repository from the [CloudScend Foresight ECS Deployment location](PUT A LINK IN HERE?).

2. Deployment order of CloudScend Foresight containers:

- Commondata Database
- Commondata Backend
- Metabase DB
Expand Down Expand Up @@ -147,7 +145,6 @@ For example, the following describe and register statements create task definiti
4. Create ECS Services

- If your administrator has chosen the Fargate service, then create ECS Fargate Services

- To create a service with Fargate, run similar AWS CLI command below for each ECS Task Definition previously created. Below is an example using the commondata-db container. Ensure you use the correct network and cluster values for your environment.

```
Expand All @@ -156,7 +153,6 @@ For example, the following describe and register statements create task definiti

:::note
It’s recommended to run Elasticsearch on Fargate due to recent compatibility contingencies.

- To fix paging issue on Elasticsearch EC2 attempt to add this command to the instances: **THIS SAYS EC2 BUT DEALING WITH FARGATE**
- sudo sysctl -w vm.max_map_count=262144
- sudo sysctl -w fs.file-max=65536
Expand Down Expand Up @@ -225,7 +221,6 @@ Below find an example of a successful output when task definition is properly re
```

- If your administrator has chosen the EC2 service, then create ECS EC2 Services

- To create a service with ECS EC2, run simialiar AWS CLI command for each Task Definition previously created. Below is an example using the commondata container. Ensure you use the correct network and cluster values for your environment.

```
Expand Down
2 changes: 1 addition & 1 deletion webapp/docs/foresight-ops-diagnostic.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ As an administrator there may be times when you need to examine the logs for pos
```
brew install awscli
```

- If you don't want to or cannot use brew, there are other options discussed here: https://stackoverflow.com/questions/26574232/aws-cli-path-settings.
3. Contact your AWS admin to get an AWS account setup and loaded in
- You will need:
- An access Key on AWS - either create one or update the IAM user's key. This should be a CSV but preferably given to user secure channels.
- The admin needs to add you into the AWS cluster.
4. Setup your account information into the aws cli

- Run aws configure in your terminal and it will prompt you for four items.

```
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function Home() {
<Link
className={clsx(
"button button--outline button--secondary button--lg",
styles.getStarted
styles.getStarted,
)}
to={useBaseUrl("docs/foresight-cloud-app-mod-overview")}
>
Expand Down
4 changes: 0 additions & 4 deletions webapp/src/partials/foresight-api-header.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ curl $FORESIGHT_API_BASE_URL/sage/application/ -H "Authorization: bearer $TOKEN"
The quickest way to get started is to use our Postman request collection. The following steps will help you get up and running.

1. **Import the CloudScend Foresight Postman Collection**

- <a
href={useBaseUrl("/data/foresight-api.postman_collection.json")}
download
Expand All @@ -74,7 +73,6 @@ The quickest way to get started is to use our Postman request collection. The fo
- From Postman, Import -> Select downloaded Foresight postman collection

2. **Configure Postman Environment**

- Setup a new environment in Postman. Click New -> Environment.
- Name the new environment _Foresight API_
- Add the following variables:
Expand All @@ -84,7 +82,6 @@ The quickest way to get started is to use our Postman request collection. The fo
- Click Add to create

3. **Authenticate**

- In the Authorization tab for the collection, select OAuth 2.0 from the Type dropdown list. By default Postman will append the access token to Bearer in the Authorization header for your request.
- To request an access token, fill out the fields in the Configure New Token section. There are several ways to configure based on the Grant Type you want to use. For the Password Credentials grant type enter the following details:
- Access Token URL: {{loginBaseUrl}}/auth/realms/appmod/protocol/openid-connect/token
Expand All @@ -99,7 +96,6 @@ The quickest way to get started is to use our Postman request collection. The fo
- View [Postman Documentation on OAuth2 Authentication](https://learning.postman.com/docs/sending-requests/authorization/#oauth-20) for more info.

4. **Explore the API**

- Execute any of the requests within the collection
- Refer to this documentation for the requirements of each request

Expand Down