-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[OPAL-5380] implement on_call_schedule resource and binding with group (
#11)
- Loading branch information
1 parent
08936e2
commit 3ce381e
Showing
12 changed files
with
299 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"go.testEnvFile": "${workspaceFolder}/.envrc.local.vscode", | ||
"go.testEnvVars": { | ||
"TF_ACC": 1, | ||
"TF_LOG": "DEBUG", | ||
"TF_ACC": "1", | ||
"TF_LOG": "DEBUG" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
page_title: "opal_on_call_schedule Resource - terraform-provider-opal" | ||
subcategory: "" | ||
description: |- | ||
An Opal OnCallSchedule resource. | ||
--- | ||
|
||
# opal_on_call_schedule (Resource) | ||
|
||
An Opal OnCallSchedule resource. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "opal_on_call_schedule" "security_oncall_rotation" { | ||
third_party_provider = "PAGER_DUTY" | ||
remote_id = "PNXHVAA" | ||
} | ||
# Example group usage | ||
resource "opal_group" "security" { | ||
// ... | ||
on_call_schedule { | ||
id = opal_on_call_schedule.security_oncall_rotation.id | ||
} | ||
// or if an UUID is already present in Opal | ||
on_call_schedule { | ||
id = "878ba05b-33f0-4dd5-a199-09efc06abcf7" | ||
} | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `remote_id` (String) The remote ID of the on call schedule. | ||
- `third_party_provider` (String) The provider of the on call schedule (i.e. PAGER_DUTY, OPSGENIE). | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The ID of the on call schedule. | ||
|
||
Please [file a ticket](https://github.com/opalsecurity/terraform-provider-opal/issues) to discuss use cases that are not yet supported in the provider. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
resource "opal_on_call_schedule" "security_oncall_rotation" { | ||
third_party_provider = "PAGER_DUTY" | ||
remote_id = "PNXHVAA" | ||
} | ||
|
||
# Example group usage | ||
resource "opal_group" "security" { | ||
// ... | ||
|
||
on_call_schedule { | ||
id = opal_on_call_schedule.security_oncall_rotation.id | ||
} | ||
|
||
// or if an UUID is already present in Opal | ||
on_call_schedule { | ||
id = "878ba05b-33f0-4dd5-a199-09efc06abcf7" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.