Skip to content
Open
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
26 changes: 26 additions & 0 deletions betatemplates/resources/davinci_application_key.md.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
page_title: "{{.Name}} {{.Type}} - {{.RenderedProviderName}}"
subcategory: "DaVinci"
description: |-
{{ .Description | plainmarkdown | trimspace | prefixlines " " }}
---

# {{.Name}} ({{.Type}})

{{ .Description | trimspace }}

{{ if .HasExample -}}
## Example Usage

{{ tffile (printf "%s%s%s" "examples/resources/" .Name "/resource.tf") }}
{{- end }}

{{ .SchemaMarkdown | trimspace }}

{{ if .HasImport -}}
## Import

Import is supported using the following syntax, where attributes in `<>` brackets are replaced with the relevant ID. For example, `<environment_id>` should be replaced with the ID of the environment to import from.

{{ codefile "shell" (printf "%s%s%s" "examples/resources/" .Name "/import.sh") }}
{{- end }}
26 changes: 26 additions & 0 deletions betatemplates/resources/davinci_application_secret.md.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
page_title: "{{.Name}} {{.Type}} - {{.RenderedProviderName}}"
subcategory: "DaVinci"
description: |-
{{ .Description | plainmarkdown | trimspace | prefixlines " " }}
---

# {{.Name}} ({{.Type}})

{{ .Description | trimspace }}

{{ if .HasExample -}}
## Example Usage

{{ tffile (printf "%s%s%s" "examples/resources/" .Name "/resource.tf") }}
{{- end }}

{{ .SchemaMarkdown | trimspace }}

{{ if .HasImport -}}
## Import

Import is supported using the following syntax, where attributes in `<>` brackets are replaced with the relevant ID. For example, `<environment_id>` should be replaced with the ID of the environment to import from.

{{ codefile "shell" (printf "%s%s%s" "examples/resources/" .Name "/import.sh") }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
terraform import pingone_davinci_application_key.example <environment_id>/<application_id>
26 changes: 26 additions & 0 deletions examples/resources/pingone_davinci_application_key/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
resource "pingone_davinci_application" "my_awesome_application" {
environment_id = var.pingone_environment_id

name = "My Awesome Application"

oauth {
grant_types = ["authorizationCode"]
scopes = ["openid", "profile"]
enforce_signed_request_openid = false
redirect_uris = ["https://auth.pingone.com/0000-0000-000/rp/callback/openid_connect"]
}
}

// Example of using the time provider to control regular rotation of application key
resource "time_rotating" "application_key_rotation_trigger" {
rotation_days = 30
}

resource "pingone_davinci_application_key" "application_key_rotate" {
environment_id = var.pingone_environment_id
application_id = pingone_davinci_application.my_awesome_application.id

rotation_trigger_values = {
"rotation_rfc3339" : time_rotating.application_key_rotation_trigger.rotation_rfc3339,
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
terraform import pingone_davinci_application_secret.example <environment_id>/<application_id>
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
resource "pingone_davinci_application" "my_awesome_application" {
environment_id = var.pingone_environment_id

name = "My Awesome Application"

oauth {
grant_types = ["authorizationCode"]
scopes = ["openid", "profile"]
enforce_signed_request_openid = false
redirect_uris = ["https://auth.pingone.com/0000-0000-000/rp/callback/openid_connect"]
}
}

// Example of using the time provider to control regular rotation of application secret
resource "time_rotating" "application_secret_rotation_trigger" {
rotation_days = 30
}

resource "pingone_davinci_application_secret" "application_secret_rotate" {
environment_id = var.pingone_environment_id
application_id = pingone_davinci_application.my_awesome_application.id

rotation_trigger_values = {
"rotation_rfc3339" : time_rotating.application_secret_rotation_trigger.rotation_rfc3339,
}
}
Loading