Skip to content

trustedProfileId(s) is invalid when creating ibm_config_aggregator_settings #241

@lionelmace

Description

@lionelmace

Every time I run this sample, it fails the first time on the Trusted Profile. If I run it again, it succeeds.. Weird. Is there a propagation time issue?

resource "ibm_config_aggregator_settings" "scc_wp_aggregator" {
  instance_id                 = module.app_config.app_config_guid
  # instance_id                 = ibm_resource_instance.app_config.guid
  region                      = var.region
  resource_collection_enabled = true
  resource_collection_regions = ["all"]
  trusted_profile_id          = module.trusted_profile_app_config_general.profile_id
 2025/05/21 07:45:21 Terraform apply | Error: ---
 2025/05/21 07:45:21 Terraform apply | id: terraform-afb83e56
 2025/05/21 07:45:21 Terraform apply | summary: 'ReplaceSettingsWithContext failed: trustedProfileId(s) is invalid or have
 2025/05/21 07:45:21 Terraform apply |   insufficient access.'
 2025/05/21 07:45:21 Terraform apply | severity: error
 2025/05/21 07:45:21 Terraform apply | resource: ibm_config_aggregator_settings
 2025/05/21 07:45:21 Terraform apply | operation: create
 2025/05/21 07:45:21 Terraform apply | component:
 2025/05/21 07:45:21 Terraform apply |   name: github.com/IBM-Cloud/terraform-provider-ibm
 2025/05/21 07:45:21 Terraform apply |   version: 1.78.3
 2025/05/21 07:45:21 Terraform apply | ---
 2025/05/21 07:45:21 Terraform apply | 
 2025/05/21 07:45:21 Terraform apply | 
 2025/05/21 07:45:21 Terraform apply |   with ibm_config_aggregator_settings.scc_wp_aggregator,
 2025/05/21 07:45:21 Terraform apply |   on observability-monitoring.tf line 195, in resource "ibm_config_aggregator_settings" "scc_wp_aggregator":
 2025/05/21 07:45:21 Terraform apply |  195: resource "ibm_config_aggregator_settings" "scc_wp_aggregator" {
 2025/05/21 07:45:21 Terraform apply | 
 2025/05/21 07:45:21 �[1m�[31mTerraform APPLY error: Terraform APPLY errorexit status 1�[39m�[0m
 2025/05/21 07:45:21 �[1m�[31mCould not execute job: Error : Terraform APPLY errorexit status 1�[39m�[0m

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions