Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request - okta_policy_idp_discovery_default #874

Closed
exitcode0 opened this issue Dec 22, 2021 · 2 comments · Fixed by #964
Closed

Feature Request - okta_policy_idp_discovery_default #874

exitcode0 opened this issue Dec 22, 2021 · 2 comments · Fixed by #964
Labels
enhancement Asking for new behavior or feature

Comments

@exitcode0
Copy link
Contributor

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 other comments that do not add relevant new information or questions, 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

Description

Currently when defining okta_policy_rule_idp_discovery resources there doesn't seem to be any way to avoid hard coding the policy_id
a data source for okta_policy_idp_discovery_default would allow me to reference the policy_id dynamically

New or Affected Resource(s)

  • okta_policy_idp_discovery_default

Potential Terraform Configuration

data "okta_policy_idp_discovery_default" "default_idp_discovery" {}
@exitcode0 exitcode0 added the enhancement Asking for new behavior or feature label Dec 22, 2021
@bogdanprodan-okta
Copy link
Contributor

Hi, @exitcode0! Thanks for submitting this issue! I'll investigate the problem and get back to you asap.

@exitcode0
Copy link
Contributor Author

looks like I ended up working around this by doing the following
This can be marked as resolved, perhaps some doco updates might be helpful for the next person running into this like I did

data "okta_policy" "idp_discovery_policy" {
  name = "Idp Discovery Policy"
  type = "IDP_DISCOVERY"
}
resource "okta_policy_rule_idp_discovery" "example" {
  policy_id = data.okta_policy.idp_discovery_policy.id
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Asking for new behavior or feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants