You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 19, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: solutions/instances/README.md
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,6 @@ This solution supports provisioning and configuring the following infrastructure
42
42
|[ibm_en_destinations.en_destinations](https://registry.terraform.io/providers/IBM-Cloud/ibm/1.69.2/docs/data-sources/en_destinations)| data source |
43
43
|[ibm_iam_account_settings.iam_account_settings](https://registry.terraform.io/providers/IBM-Cloud/ibm/1.69.2/docs/data-sources/iam_account_settings)| data source |
44
44
|[ibm_resource_group.group](https://registry.terraform.io/providers/IBM-Cloud/ibm/1.69.2/docs/data-sources/resource_group)| data source |
45
-
|[ibm_resource_instance.scc_instance](https://registry.terraform.io/providers/IBM-Cloud/ibm/1.69.2/docs/data-sources/resource_instance)| data source |
Copy file name to clipboardExpand all lines: solutions/instances/main.tf
+13-24Lines changed: 13 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ module "kms" {
45
45
providers={
46
46
ibm = ibm.kms
47
47
}
48
-
count=var.existing_scc_cos_kms_key_crn!=null|| var.existing_scc_cos_bucket_name!=null?0:1# no need to create any KMS resources if passing an existing key, or bucket
48
+
count=(var.existing_scc_cos_kms_key_crn!=null|| var.existing_scc_cos_bucket_name!=null) && var.existing_scc_instance_crn==null?0:1# no need to create any KMS resources if passing an existing key or bucket, or SCC instance
count=var.existing_scc_cos_bucket_name==null?1:0# no need to call COS module if consumer is passing existing COS bucket
89
+
count=var.existing_scc_cos_bucket_name==null&& var.existing_scc_instance_crn==null?1:0# no need to call COS module if consumer is passing existing SCC instance or COS bucket
attachment_name="${each.value+1} daily full account attachment"
229
218
attachment_description="SCC profile attachment scoped to your specific IBM Cloud account id ${data.ibm_iam_account_settings.iam_account_settings.account_id} with a daily attachment schedule."
0 commit comments