Skip to content
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ locals {
resource "ibm_iam_trusted_profile_policy" "policy" {
for_each = local.policy_map

profile_id = ibm_iam_trusted_profile.profile.profile_id
iam_id = ibm_iam_trusted_profile.profile.profile_id

@anthonylecarrer anthonylecarrer Aug 29, 2025 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@iamar7 @ocofaigh Following IBM Documentation in terraform registry profile_id is not an attribute of ibm_iam_trusted_profile resource 😄 ... What about profile_id attribute on ibm_iam_trusted_profile if ibm_iam_trusted_profile_policy resource change the profile_id by iam_id ....

https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/iam_trusted_profile

roles = each.value.roles
account_management = each.value.account_management
description = each.value.description
Expand Down
7 changes: 7 additions & 0 deletions tests/pr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,18 @@ import (
const completeExampleDir = "examples/complete"
const templateExampleDir = "examples/tp-template"

var IgnoreUpdates = []string{
"module.trusted_profile.ibm_iam_trusted_profile_policy.policy",
}

func setupOptions(t *testing.T, prefix string, dir string) *testhelper.TestOptions {
options := testhelper.TestOptionsDefaultWithVars(&testhelper.TestOptions{
Testing: t,
TerraformDir: dir,
Prefix: prefix,
IgnoreUpdates: testhelper.Exemptions{
List: IgnoreUpdates,
},
})
return options
}
Expand Down