IBM-Cloud / terraform-provider-ibm

https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs
Mozilla Public License 2.0
336 stars 645 forks source link

activity_tracking and metrics_monitoring schemas seems out of date for `ibm_cos_bucket` #5425

Open ocofaigh opened 2 weeks ago

ocofaigh commented 2 weeks ago

The activity_tracking option for ibm_cos_bucket has the following nested schema:

activity_tracking {
    read_data_events     = true
    write_data_events    = true
    activity_tracker_crn = ibm_resource_instance.activity_tracker.id
  }

However it would seem that this is out of date. When you provision a COS bucket in the UI, I see two main differences:

  1. UI has a third option Management Data Events which seems to be missing from the terraform schema
  2. activity_tracker_crn no longer seems to be a required value to pass

image

The same goes for the metrics_monitoring schema, it seems the UI does not ask for an instance ID image

Is the provider out of date here?

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.

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please share a link to the ZIP file.

Debug Output

Panic Output

Expected Behavior

Actual Behavior

Steps to Reproduce

  1. terraform apply

Important Factoids

References

ocofaigh commented 2 weeks ago

@IBM-diksha is this something you can help confirm please?

IBM-diksha commented 1 day ago

Hi @ocofaigh We have updated the activity_tracking and metrics_monitoring schema to includemanagement events and making activity_tracking_crnand metrics_monitoring_crn optional. This change is currently in the latest beta release- v1.67.0-beta, You can switch to the beta version for this one. Thank you.