Skip to content

[BUG] Create JSON - lower case custom identity provider in JSON file #418

@lechnerc77

Description

@lechnerc77

Is there an existing issue for this?

  • I have searched the existing issues

What version of the Terraform exporter are you using?

1.2.0

What version of the Terraform CLI/OpenTofu CLI are you using?

1.12.2

What type of issue are you facing

bug report

Describe the bug

When creating the JSON file via the command btptf create-json for a subaccount, we run into an issue in the data for the trust-configurations: it seems that the capital letters from the identifiers get translated into all lower caps. This causes issues when identity providers are customized differently e.g. MS-EntraID-platform:

The created JSON file would then look like this:

{
      "Name": "trust-configurations",
      "Values": [
        "ms-entraid-platform",
       ]
    },

The import fails with the error message

error crafting import block: trust configuration ms-entraid-platform not found in the subaccount. Please adjust it in the provided file

Expected Behavior

The JSON inventory respects the capitalization of the trust configuration identifiers.

Steps To Reproduce

n/a

User's Role Collections

n/a

Add screenshots to help explain your problem

n/a

Additional context

Can be fixed manually by adjusting the JSOn file. However, this is not the expected flow

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions