Skip to content

Okta Push Group Import#2827

Description

@JSHERVI

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request.
  • Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.
    Before submitting a bug report, we ask that you first search existing issues and pull requests to see if someone else may have experienced the same issue or may have already submitted a fix for it. This helps to keep all relevant information in one place, including any potential workarounds.

A Note on Terraform Core Issues

We also ask that you consider whether your issue may be related to Terraform Core. If you are running into one of the following scenarios, we recommend opening an issue in the Terraform Core repository instead:

Terraform Version & Okta Provider Version(s)

OpenTofu - 1.11.8
on

  • provider registry.terraform.io/providers/okta/okta/ v6.10.0

Affected Resource(s)

Okta Push Group

Can this be done in the Admin UI?

Yes

Can this be done in the actual API call?

Yes

Customer Information

Organization Name:
Paid Customer: <yes/no>

Terraform Configuration

import {
to = okta_push_group.okta-test-group
id = "0oxxxxxxxxxxxx/gPmr7yyyyyyyyy5d7"
}

resource "okta_push_group" "okta-test-group" {
app_id = okta_app_saml.app.id
source_group_id = local.ad_groups.okta-test-group
delete_target_group_on_destroy = true
status = "ACTIVE"
}

After the plan, it keeps adding the delete_target_group_on_destroy as shown below.

Debug Output

Plan Output is below.

~ resource "okta_push_group" "okta-test-group" {
app_id = "0oxxxxxxxxxxxx"
+ delete_target_group_on_destroy = true
id = "gPmr7yyyyyyyyy5d7"
source_group_id = "gPmr7yyyyyyyyy5d7"
status = "ACTIVE"
target_group_id = "gPmr7yyyyyyyyy5d7"
}

Expected Behavior

Expected behavior, it shouldn't change/add anything after the import.

Actual Behavior

Plan Output is below.

~ resource "okta_push_group" "okta-test-group" {
app_id = "0oxxxxxxxxxxxx"
+ delete_target_group_on_destroy = true
id = "gPmr7yyyyyyyyy5d7"
source_group_id = "gPmr7yyyyyyyyy5d7"
status = "ACTIVE"
target_group_id = "gPmr7yyyyyyyyy5d7"
}

After the plan, it keeps adding the delete_target_group_on_destroy as shown below.

Steps to reproduce

1.tofu plan

Important Factoids

No response

References

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions