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.
feat: added the ability to scope attachments to a resource group using new input resource_groups_scope<br>* added the ability to set the attachment schedule using the new attachment_schedule input variable (#148)
|[ibm_en_destinations.en_destinations](https://registry.terraform.io/providers/IBM-Cloud/ibm/1.67.1/docs/data-sources/en_destinations)| data source |
41
41
|[ibm_iam_account_settings.iam_account_settings](https://registry.terraform.io/providers/IBM-Cloud/ibm/1.67.1/docs/data-sources/iam_account_settings)| data source |
42
+
|[ibm_resource_group.group](https://registry.terraform.io/providers/IBM-Cloud/ibm/1.67.1/docs/data-sources/resource_group)| data source |
42
43
|[ibm_resource_instance.scc_instance](https://registry.terraform.io/providers/IBM-Cloud/ibm/1.67.1/docs/data-sources/resource_instance)| data source |
43
44
44
45
### Inputs
45
46
46
47
| Name | Description | Type | Default | Required |
| <aname="input_add_bucket_name_suffix"></a> [add\_bucket\_name\_suffix](#input\_add\_bucket\_name\_suffix)| Whether to add a generated 4-character suffix to the created Security and Compliance Center Object Storage bucket name. Applies only if not specifying an existing bucket. Set to `false` not to add the suffix to the bucket name in the `scc_cos_bucket_name` variable. |`bool`|`true`| no |
50
+
| <aname="input_attachment_schedule"></a> [attachment\_schedule](#input\_attachment\_schedule)| The scanning schedule. Possible values: `daily`, `every_7_days`, `every_30_days`, `none`. |`string`|`"daily"`| no |
49
51
| <aname="input_cos_instance_access_tags"></a> [cos\_instance\_access\_tags](#input\_cos\_instance\_access\_tags)| A list of access tags to apply to the Object Storage instance. Applies only if not specifying an existing instance. |`list(string)`|`[]`| no |
50
52
| <aname="input_cos_instance_name"></a> [cos\_instance\_name](#input\_cos\_instance\_name)| The name for the Object Storage instance. If a prefix input variable is specified, the prefix is added to the name in the `<prefix>-<name>` format. |`string`|`"base-security-services-cos"`| no |
51
53
| <aname="input_cos_instance_tags"></a> [cos\_instance\_tags](#input\_cos\_instance\_tags)| The list of tags to add to the Object Storage instance. Applies only if not specifying an existing instance. |`list(string)`|`[]`| no |
@@ -65,6 +67,7 @@ This solution supports provisioning and configuring the following infrastructure
65
67
| <aname="input_profile_attachments"></a> [profile\_attachments](#input\_profile\_attachments)| The list of Security and Compliance Center profile attachments to create that are scoped to your IBM Cloud account. The attachment schedule runs daily and defaults to the latest version of the specified profile attachments. |`list(string)`| <pre>[<br> "IBM Cloud Framework for Financial Services"<br>]</pre> | no |
66
68
| <aname="input_provision_scc_workload_protection"></a> [provision\_scc\_workload\_protection](#input\_provision\_scc\_workload\_protection)| Whether to provision a Workload Protection instance. |`bool`|`true`| no |
67
69
| <aname="input_resource_group_name"></a> [resource\_group\_name](#input\_resource\_group\_name)| The name of a new or an existing resource group in which to provision resources to. If a prefix input variable is specified, the prefix is added to the name in the `<prefix>-<name>` format. |`string`| n/a | yes |
70
+
| <aname="input_resource_groups_scope"></a> [resource\_groups\_scope](#input\_resource\_groups\_scope)| The resource group to associate with the Security and Compliance Center profile attachments. If not specified, the attachments are scoped to the current account ID. Only one resource group is allowed. |`list(string)`|`[]`| no |
68
71
| <aname="input_scc_cos_bucket_access_tags"></a> [scc\_cos\_bucket\_access\_tags](#input\_scc\_cos\_bucket\_access\_tags)| The list of access tags to add to the Security and Compliance Center Object Storage bucket. |`list(string)`|`[]`| no |
69
72
| <aname="input_scc_cos_bucket_class"></a> [scc\_cos\_bucket\_class](#input\_scc\_cos\_bucket\_class)| The storage class of the newly provisioned Security and Compliance Center Object Storage bucket. Possible values: `standard`, `vault`, `cold`, `smart`, `onerate_active`. [Learn more](https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-classes). |`string`|`"smart"`| no |
70
73
| <aname="input_scc_cos_bucket_name"></a> [scc\_cos\_bucket\_name](#input\_scc\_cos\_bucket\_name)| The name for the Security and Compliance Center Object Storage bucket. Bucket names must globally unique. If `add_bucket_name_suffix` is true, a 4-character string is added to this name to ensure it's globally unique. If a prefix input variable is specified, the prefix is added to the name in the `<prefix>-<name>` format. |`string`|`"base-security-services-bucket"`| no |
attachment_name="${each.value+1} daily full account attachment"
188
229
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."
189
-
attachment_schedule="daily"
190
-
scope=[
191
-
{
192
-
environment ="ibm-cloud"
193
-
properties = [
194
-
{
195
-
name ="scope_type"
196
-
value ="account"
197
-
},
198
-
{
199
-
name ="scope_id"
200
-
value = data.ibm_iam_account_settings.iam_account_settings.account_id
default=["IBM Cloud Framework for Financial Services"]
227
227
}
228
228
229
+
variable"resource_groups_scope" {
230
+
type=list(string)
231
+
description="The resource group to associate with the Security and Compliance Center profile attachments. If not specified, the attachments are scoped to the current account ID. Only one resource group is allowed."
232
+
default=[]
233
+
validation {
234
+
condition=length(var.resource_groups_scope) <=1
235
+
error_message="Only one resource group is allowed."
236
+
}
237
+
}
238
+
239
+
variable"attachment_schedule" {
240
+
type=string
241
+
description="The scanning schedule. Possible values: `daily`, `every_7_days`, `every_30_days`, `none`."
0 commit comments