-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update PingOne Neo getting started example
- Loading branch information
1 parent
04f1d3b
commit bcf2733
Showing
6 changed files
with
118 additions
and
62 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
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,4 @@ | ||
output "pingone_environment_name" { | ||
description = "The environment name created by the example" | ||
value = pingone_environment.my_environment.name | ||
} |
66 changes: 66 additions & 0 deletions
66
examples/pingone-neo-getting-started/supporting-configuration.tf
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,66 @@ | ||
locals { | ||
pingone_environment_name = var.append_date_to_environment_name ? format("%s %s", var.pingone_environment_name, formatdate("YYYY-MMM-DD hhmm", time_static.current.id)) : var.pingone_environment_name | ||
} | ||
|
||
# example uses a group for credential assignment | ||
resource "pingone_group" "getting_started_assignment_group" { | ||
environment_id = pingone_environment.my_environment.id | ||
|
||
name = "Example group for Getting Started credential assignment" | ||
} | ||
|
||
# example uses a population for credential assignment - an existing default or other population could be used | ||
resource "pingone_population" "demo_population" { | ||
environment_id = pingone_environment.my_environment.id | ||
|
||
name = "Demo User Population" | ||
description = "Demo User Population" | ||
} | ||
|
||
resource "pingone_image" "credentials_card_verified_employee_background_image" { | ||
environment_id = pingone_environment.my_environment.id | ||
|
||
image_file_base64 = filebase64("./images/verifiedemployee_background.png") | ||
} | ||
|
||
resource "pingone_image" "credentials_card_verified_employee_logo_image" { | ||
environment_id = pingone_environment.my_environment.id | ||
|
||
image_file_base64 = filebase64("./images/verifiedemployee_logo.png") | ||
} | ||
|
||
resource "pingone_image" "credentials_card_getting_started_background_image" { | ||
environment_id = pingone_environment.my_environment.id | ||
|
||
image_file_base64 = filebase64("./images/gettingstarted_background.png") | ||
} | ||
|
||
resource "pingone_image" "credentials_card_getting_started_logo_image" { | ||
environment_id = pingone_environment.my_environment.id | ||
|
||
image_file_base64 = filebase64("./images/gettingstarted_logo.png") | ||
} | ||
|
||
resource "pingone_environment" "my_environment" { | ||
name = local.pingone_environment_name | ||
description = "This environment was created by Terraform as an example of how to set up a PingOne Verify policy and PingOne Credentials verifiable credentials configuration." | ||
type = "SANDBOX" | ||
license_id = var.pingone_environment_license_id | ||
|
||
default_population {} | ||
|
||
service { | ||
type = "SSO" | ||
} | ||
service { | ||
type = "MFA" | ||
} | ||
service { | ||
type = "Verify" | ||
} | ||
service { | ||
type = "Credentials" | ||
} | ||
} | ||
|
||
resource "time_static" "current" {} |
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,4 +1,16 @@ | ||
variable "pingone_license_id" { | ||
variable "pingone_environment_name" { | ||
description = "A string that represents the name of the PingOne customer environment to create and manage with Terraform." | ||
type = string | ||
default = "Terraform Example - Getting Started with PingOne Neo" | ||
} | ||
|
||
variable "append_date_to_environment_name" { | ||
description = "A boolean that determines whether to append the current date to the pingone_environment_name value." | ||
type = bool | ||
default = true | ||
} | ||
|
||
variable "pingone_environment_license_id" { | ||
description = "A valid license UUID to apply to the new environment." | ||
type = string | ||
} |
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,13 +1,18 @@ | ||
terraform { | ||
required_version = ">= 1.1.0" | ||
required_version = ">= 1.2.0" | ||
|
||
required_providers { | ||
pingone = { | ||
source = "pingidentity/pingone" | ||
version = "~> 0.17.1" | ||
version = ">= 0.21.0, < 1.0.0" | ||
} | ||
time = { | ||
source = "hashicorp/time" | ||
version = ">= 0.9.1, < 1.0.0" | ||
} | ||
} | ||
} | ||
|
||
provider "pingone" { | ||
# Configuration options | ||
} | ||
provider "pingone" {} | ||
|
||
provider "time" {} |