Skip to content

Commit 01948e0

Browse files
authored
fix: add fix to the format of iam_id used in trusted profile template submodule (#166)
1 parent eb7dfe6 commit 01948e0

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

modules/trusted-profile-template/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ resource "ibm_iam_trusted_profile_template" "trusted_profile_template_instance"
3434
# https://github.com/terraform-ibm-modules/terraform-ibm-trusted-profile/issues/165
3535
identities {
3636
type = "crn"
37-
iam_id = var.identity_crn
37+
iam_id = "crn-${var.identity_crn}" # From IAM team -> ibmid of crn is composed with prefix crn and crn of an resource.
3838
identifier = var.identity_crn
3939
}
4040
}

tests/pr_test.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,6 @@ func setupTemplateOptions(t *testing.T, prefix string, dir string) *testhelper.T
2626
Testing: t,
2727
TerraformDir: dir,
2828
Prefix: prefix,
29-
// Workaround for provider bug (TODO: Add issue number)
30-
IgnoreUpdates: testhelper.Exemptions{
31-
List: []string{
32-
"module.trusted_profile_template.ibm_iam_trusted_profile_template.trusted_profile_template_instance",
33-
},
34-
},
3529
})
3630
terraformVars := map[string]interface{}{
3731
"prefix": options.Prefix,

0 commit comments

Comments
 (0)