Troubleshooting

This section presents solutions and workarounds for issues you may encounter when using the Terraform-Secret Server integration.

Issue When Upgrading the Delinea Terraform Provider from v2.0.9 to 3.0.0 or Later

Cause

When upgrading your Delinea Terraform provider from v2.0.9 to 3.0.0 or later, you can receive a "Breaking Change: sshkeyargs Data Type Migration" error. This issue occurs because of a discrepancy in the data type of the sshkeyargs property in the Terraform state file between v2.0.9 and later versions.

Resolution

To resolve this, manually update your Terraform state file:

  1. Back up your state file (terraform.tfstate).

  2. Open the state file in a text editor.

  3. Find the sshkeyargs property under your resource and change its value from [] to null: "sshkeyargs": null.

  4. Save the state file.

  5. Update your Terraform provider version to the latest version in your configuration.

  6. Run:

    terraform init -upgrade

  7. To verify that the issue is resolved, run:

    terraform plan