Skip to content

Commit

Permalink
feat: added new output scc_attachment_info in the SCC instances DA (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
imprateeksh authored Sep 18, 2024
1 parent 8ea2dc9 commit cccc804
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions solutions/instances/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ This solution supports provisioning and configuring the following infrastructure
|------|-------------|
| <a name="output_resource_group_id"></a> [resource\_group\_id](#output\_resource\_group\_id) | Resource group ID |
| <a name="output_resource_group_name"></a> [resource\_group\_name](#output\_resource\_group\_name) | Resource group name |
| <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). |
| <a name="output_scc_cos_bucket_config"></a> [scc\_cos\_bucket\_config](#output\_scc\_cos\_bucket\_config) | List of buckets created |
| <a name="output_scc_cos_bucket_name"></a> [scc\_cos\_bucket\_name](#output\_scc\_cos\_bucket\_name) | SCC COS bucket name |
| <a name="output_scc_cos_instance_crn"></a> [scc\_cos\_instance\_crn](#output\_scc\_cos\_instance\_crn) | SCC COS instance crn |
Expand Down
16 changes: 16 additions & 0 deletions solutions/instances/instances.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# SCC Instance

## Outputs

### `scc_attachment_info`

The following is an example of the output `scc_attachment_info` generated by the SCC instance:

```hcl
[
{
"attachment_id" = "826a5abd-d27f-4ecf-ae32-6fee1a53c782/fe96bd4d-9b37-40f2-b39f-a62760x326q3/ec75b445-e85b-440c-9223-19863ab4d7c4",
"name" = "IBM Cloud Framework for Financial Services",
"version" = "1.7.0"
}
]
11 changes: 11 additions & 0 deletions solutions/instances/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,17 @@ output "scc_workload_protection_access_key" {
sensitive = true
}

output "scc_attachment_info" {
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)."
value = [
for attachment in module.create_profile_attachment : {
attachment_id = attachment.id
name = attachment.profile.profile_name
version = attachment.profile.profile_version
}
]
}

########################################################################################################################
# SCC COS
########################################################################################################################
Expand Down

0 comments on commit cccc804

Please sign in to comment.