Skip to content

Commit

Permalink
Add region to examples, and run makedocs
Browse files Browse the repository at this point in the history
  • Loading branch information
i5o committed Aug 9, 2023
1 parent bd588da commit b6cdba8
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 6 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ $EDITOR jupiterone/internal/client/<query source file>.graphql
# save the updated schema the first time
export JUPITERONE_ACCOUNT=:your_account_id
export JUPITERONE_API_KEY=:your_api_key
export JUPITERONE_REGION=us
yarn add graphql

make generate-client
Expand All @@ -66,7 +67,7 @@ make generate-client

In order to test the provider, you can simply run `make testacc`. Pre-recorded
API responses (cassettes) are read in from
[jupiterone/cassettes/*.yaml](jupiterone/cassettes) files and returned. When
[jupiterone/cassettes/\*.yaml](jupiterone/cassettes) files and returned. When
tests are modified, the cassettes need to be re-recorded.

_Note:_ Recording cassettes creates/updates/destroys real resources. Never run this on
Expand All @@ -80,6 +81,7 @@ To re-record _all_ cassettes:
```sh
export JUPITERONE_ACCOUNT_ID=your-account-id
export JUPITERONE_API_KEY=xxxxxx
export JUPITERONE_REGION=us
make cassettes
```

Expand All @@ -91,6 +93,7 @@ functionality.
```sh
export JUPITERONE_ACCOUNT_ID=your-account-id
export JUPITERONE_API_KEY=xxxxxx
export JUPITERONE_REGION=us
rm jupiterone/cassettes/:some-test.yaml
make testacc
```
Expand Down
5 changes: 3 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ The JupiterOne provider provides resources to interact with a JupiterOne API.

```terraform
provider "jupiterone" {
api_key = "${var.jupiterone_api_key}"
account_id = "${var.jupiterone_account}"
api_key = var.jupiterone_api_key
account_id = var.jupiterone_account
region = var.jupiterone_region
}
```

Expand Down
2 changes: 2 additions & 0 deletions docs/resources/framework.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,5 @@ resource "jupiterone_frameworkitem" "change_control" {
### Read-Only

- `id` (String) The ID of this resource.


2 changes: 2 additions & 0 deletions docs/resources/frameworkitem.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,5 @@ A FrameworkItem (Requirement in the web UI) is a control that is part of a frame
### Read-Only

- `id` (String) The ID of this resource.


2 changes: 2 additions & 0 deletions docs/resources/group.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,5 @@ Refer to the resource_framework docs for example usage
### Read-Only

- `id` (String) The ID of this resource.


2 changes: 2 additions & 0 deletions docs/resources/libraryitem.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,5 @@ resource "jupiterone_libraryitem" "change_control" {
### Read-Only

- `id` (String) The ID of this resource.


2 changes: 2 additions & 0 deletions docs/resources/question.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,5 @@ Optional:
- `include_deleted` (Boolean)
- `name` (String)
- `results_are` (String) Defaults to INFORMATIVE.


2 changes: 2 additions & 0 deletions docs/resources/rule.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,3 +155,5 @@ Optional:

- `include_deleted` (Boolean)
- `name` (String)


7 changes: 4 additions & 3 deletions examples/provider/provider.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
provider "jupiterone" {
api_key = "${var.jupiterone_api_key}"
account_id = "${var.jupiterone_account}"
}
api_key = var.jupiterone_api_key
account_id = var.jupiterone_account
region = var.jupiterone_region
}

0 comments on commit b6cdba8

Please sign in to comment.