-
Notifications
You must be signed in to change notification settings - Fork 675
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
ibm_scc_instance_settings incorrect plan to change #5890
Labels
service/SCC
Issues related to SCC
Comments
This was referenced Dec 19, 2024
a simpler example to reproduce bug: provider "ibm" {
ibmcloud_api_key = "XX"
region = local.region
}
terraform {
required_version = ">= 1.9.0"
required_providers {
ibm = {
source = "IBM-Cloud/ibm"
version = "1.71.2"
}
}
}
module "resource_group" {
source = "terraform-ibm-modules/resource-group/ibm"
version = "1.1.6"
resource_group_name = "test-rg"
}
resource "ibm_resource_instance" "scc_instance" {
name = "test-scc"
service = "compliance"
plan = "security-compliance-center-standard-plan"
location = "us-south"
resource_group_id = module.resource_group.resource_group_id
}
resource "ibm_scc_instance_settings" "scc_instance_settings" {
instance_id = resource.ibm_resource_instance.scc_instance.guid
event_notifications {
instance_crn = # event notifications crn
source_name = "compliance"
}
object_storage {}
} Output:
|
Error in api used in the provider was found. Reference to corresponding issue: https://github.ibm.com/project-fortress/pm/issues/19432 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Community Note
Terraform CLI and Terraform IBM Provider Version
Affected Resource(s)
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/blob/main/examples/basic/main.tf
Then add
to
security_and_compliance_center
module.Debug Output
https://gist.github.com/kierramarie/a8e72887cb8e411adcadf751b44313bb
Panic Output
Expected Behavior
A
terraform apply
should be run and no changes needed.Actual Behavior
Plan: 0 to add, 1 to change, 0 to destroy.
scc_instance_settings is planned to change when nothing in the terraform has changed.Steps to Reproduce
terraform apply
terraform apply
againImportant Factoids
References
The text was updated successfully, but these errors were encountered: