Skip to content
This repository was archived by the owner on Mar 19, 2025. It is now read-only.

Commit cccc804

Browse files
authored
feat: added new output scc_attachment_info in the SCC instances DA (#198)
1 parent 8ea2dc9 commit cccc804

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

solutions/instances/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ This solution supports provisioning and configuring the following infrastructure
9898
|------|-------------|
9999
| <a name="output_resource_group_id"></a> [resource\_group\_id](#output\_resource\_group\_id) | Resource group ID |
100100
| <a name="output_resource_group_name"></a> [resource\_group\_name](#output\_resource\_group\_name) | Resource group name |
101+
| <a name="output_scc_attachment_info"></a> [scc\_attachment\_info](#output\_scc\_attachment\_info) | A list of objects containing attachment id, profile name and profile version for every SCC attachment that is created. [Learn more](https://github.com/terraform-ibm-modules/terraform-ibm-scc-da/tree/main/solutions/instances/instances.md). |
101102
| <a name="output_scc_cos_bucket_config"></a> [scc\_cos\_bucket\_config](#output\_scc\_cos\_bucket\_config) | List of buckets created |
102103
| <a name="output_scc_cos_bucket_name"></a> [scc\_cos\_bucket\_name](#output\_scc\_cos\_bucket\_name) | SCC COS bucket name |
103104
| <a name="output_scc_cos_instance_crn"></a> [scc\_cos\_instance\_crn](#output\_scc\_cos\_instance\_crn) | SCC COS instance crn |

solutions/instances/instances.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# SCC Instance
2+
3+
## Outputs
4+
5+
### `scc_attachment_info`
6+
7+
The following is an example of the output `scc_attachment_info` generated by the SCC instance:
8+
9+
```hcl
10+
[
11+
{
12+
"attachment_id" = "826a5abd-d27f-4ecf-ae32-6fee1a53c782/fe96bd4d-9b37-40f2-b39f-a62760x326q3/ec75b445-e85b-440c-9223-19863ab4d7c4",
13+
"name" = "IBM Cloud Framework for Financial Services",
14+
"version" = "1.7.0"
15+
}
16+
]

solutions/instances/outputs.tf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,17 @@ output "scc_workload_protection_access_key" {
6464
sensitive = true
6565
}
6666

67+
output "scc_attachment_info" {
68+
description = "A list of objects containing attachment id, profile name and profile version for every SCC attachment that is created. [Learn more](https://github.com/terraform-ibm-modules/terraform-ibm-scc-da/tree/main/solutions/instances/instances.md)."
69+
value = [
70+
for attachment in module.create_profile_attachment : {
71+
attachment_id = attachment.id
72+
name = attachment.profile.profile_name
73+
version = attachment.profile.profile_version
74+
}
75+
]
76+
}
77+
6778
########################################################################################################################
6879
# SCC COS
6980
########################################################################################################################

0 commit comments

Comments
 (0)