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

SCC Control Library Data Lookup By Name #5186

Closed
jor2 opened this issue Mar 7, 2024 · 1 comment · Fixed by #5179
Closed

SCC Control Library Data Lookup By Name #5186

jor2 opened this issue Mar 7, 2024 · 1 comment · Fixed by #5179
Labels
enhancement service/SCC Issues related to SCC

Comments

@jor2
Copy link

jor2 commented Mar 7, 2024

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

I want to be able to lookup an scc control library by name instead of id. Our terraform code creates an scc control library, and on reapply we will need to lookup the control library again by name to check for existing controls and values, but we do not have access to the control_library_id at that time and therefore cannot provide existing values which results in terraform removing existing controls ect. since they weren't provided.

Basically this datasource should also accept a control library name and not have to provide an id.

New or Affected Resource(s)

  • ibm_scc_control_library

Potential Terraform Configuration

data "ibm_scc_control_library" "scc_control_library" {
    instance_id = "00000000-1111-2222-3333-444444444444"
    control_library_name = "control_name"
}

References

Docs: https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/data-sources/scc_control_library
internal issue: https://github.ibm.com/project-fortress/pm/issues/15403

  • #0000
@github-actions github-actions bot added the service/SCC Issues related to SCC label Mar 7, 2024
@tyao117
Copy link
Contributor

tyao117 commented Mar 13, 2024

#5179

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement service/SCC Issues related to SCC
Projects
None yet
2 participants