Exporting Terraform configuration
When working with Terraform, you should configure use cases in the Ping Identity administration console (typically in the development environment) and then export that configuration to Terraform HCL to promote it to your test and production environments.
Terraform includes experimental out-of-the-box functionality to export or generate configuration from a configured environment. You can find more details in the Terraform documentation.
Using Ping CLI to generate Terraform configuration
Terraform’s out-of-the-box capability depends on the import {}
block capability described in Importing to Terraform state.
Ping CLI has features to simplify generating Terraform HCL code for an environment. The platform export
command is designed to connect to a supported Ping Identity product, read the live configuration of the service, and generate the required Terraform HCL files with clearly labelled import {}
blocks, complete with all necessary IDs. The developer can then use the Generate Terraform Configuration feature to generate the full HCL for an environment. The developer can then choose which configuration items to include their Terraform HCL project.