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

Source name in event notification instance defaults to 'compliance' when using "ibm_scc_instance_settings" resource #5579

Open
iamar7 opened this issue Aug 23, 2024 · 2 comments
Labels
service/SCC Issues related to SCC

Comments

@iamar7
Copy link

iamar7 commented Aug 23, 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

Terraform CLI and Terraform IBM Provider Version

Terraform v1.5.7

Affected Resource(s)

  • ibm_scc_instance_settings

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

https://github.com/terraform-ibm-modules/terraform-ibm-scc/tree/main/examples/complete

Expected Behavior

The source shouldn't be set as "compliance" by default or there should be an option to set the source name.

Actual Behavior

It sets the source in the event notification instance with the name "compliance". As a result, if two SCC instances are provisioned using this module, the second instance attempting to use the EN will fail with an error stating that a source with the same name already exists.

Steps to Reproduce

Clone the repository and then follow the following steps:-

  1. Go to the complete example directory
  2. export TF_VAR_ibmcloud_api_key="xxxxxxXxxxxxxXxxxxxxXXxxxxxxxxXXXX"
  3. terraform init
  4. terraform plan
  5. terraform apply

Important Factoids

References

  • #0000
@github-actions github-actions bot added the service/SCC Issues related to SCC label Aug 23, 2024
@iamar7 iamar7 changed the title Source name in event notification Instance Defaults to 'compliance' when using "ibm_scc_instance_settings" resource Source name in event notification instance defaults to 'compliance' when using "ibm_scc_instance_settings" resource Aug 23, 2024
@tyao117
Copy link
Contributor

tyao117 commented Sep 11, 2024

allowing this capability would be difficult to incorporate because the endpoint used to READ the settings doesn't return back the source_name

@iamar7
Copy link
Author

iamar7 commented Sep 13, 2024

@tyao117 what is happening due to the above issue is that when the scc-da is used to create a new SCC instance with referencing an existing Event Notifications service, any additional project/configuration using SCC module fails because of the existing source name. Also, it is not optimal to create a separate EN instance for SCC instance.

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

No branches or pull requests

2 participants