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
<!-- Add a description of module(s) in this repo -->
16
-
TODO: Replace me with description of the module(s) in this repo
11
+
A module for provisioning an [IBM Cloud Security and Compliance Center Workload Protection instance](https://cloud.ibm.com/docs/workload-protection?topic=workload-protection-getting-started). The module will always create a Manager resource key that connects to the SCC WP instance.
17
12
18
13
19
14
<!-- Below content is automatically populated via pre-commit hook -->
@@ -22,7 +17,6 @@ TODO: Replace me with description of the module(s) in this repo
| <aname="input_access_tags"></a> [access\_tags](#input\_access\_tags)| A list of access tags to apply to the SCC WP instance created by the module. For more information, see https://cloud.ibm.com/docs/account?topic=account-access-tags-tutorial.|`list(string)`|`[]`| no |
112
+
| <aname="input_name"></a> [name](#input\_name)| A identifier used as a prefix when naming resources that will be provisioned. Must begin with a letter. |`string`| n/a | yes |
113
+
| <aname="input_region"></a> [region](#input\_region)| IBM Cloud region where all resources will be deployed |`string`|`"us-south"`| no |
114
+
| <aname="input_resource_group_id"></a> [resource\_group\_id](#input\_resource\_group\_id)| The resource group ID where resources will be provisioned. |`string`| n/a | yes |
115
+
| <aname="input_resource_key_name"></a> [resource\_key\_name](#input\_resource\_key\_name)| The name to give the IBM Cloud SCC WP resource key. |`string`|`"SCCWPManagerKey"`| no |
116
+
| <aname="input_resource_key_tags"></a> [resource\_key\_tags](#input\_resource\_key\_tags)| Tags associated with the IBM Cloud SCC WP resource key. |`list(string)`|`[]`| no |
117
+
| <aname="input_resource_tags"></a> [resource\_tags](#input\_resource\_tags)| Optional list of tags to be added to created SCC WP instance. |`list(string)`|`[]`| no |
118
+
| <aname="input_scc_wp_service_plan"></a> [scc\_wp\_service\_plan](#input\_scc\_wp\_service\_plan)| IBM service pricing plan. |`string`|`"free-trial"`| no |
104
119
105
120
### Outputs
106
121
107
-
No outputs.
122
+
| Name | Description |
123
+
|------|-------------|
124
+
| <aname="output_api_endpoint"></a> [api\_endpoint](#output\_api\_endpoint)| API endpoint. |
125
+
| <aname="output_crn"></a> [crn](#output\_crn)| CRN of created SCC WP instance. |
126
+
| <aname="output_id"></a> [id](#output\_id)| ID of created SCC WP instance. |
# More info about this file at https://github.com/terraform-ibm-modules/common-pipeline-assets/blob/main/.github/workflows/terraform-test-pipeline.md#cra-config-yaml
2
2
version: "v1"
3
3
CRA_TARGETS:
4
-
- CRA_TARGET: "examples/complete"# Target directory for CRA scan. If not provided, the CRA Scan will not be run.
4
+
- CRA_TARGET: "examples/basic"# Target directory for CRA scan. If not provided, the CRA Scan will not be run.
5
5
CRA_IGNORE_RULES_FILE: "cra-tf-validate-ignore-rules.json"# CRA Ignore file to use. If not provided, it checks the repo root directory for `cra-tf-validate-ignore-rules.json`
6
6
PROFILE_ID: "0e6e7b5a-817d-4344-ab6f-e5d7a9c49520"# SCC profile ID (currently set to the FSCloud 1.4.0 profile).
7
-
# SCC_INSTANCE_ID: "" # The SCC instance ID to use to download profile for CRA scan. If not provided, a default global value will be used.
8
-
# SCC_REGION: "" # The IBM Cloud region that the SCC instance is in. If not provided, a default global value will be used.
9
-
# CRA_ENVIRONMENT_VARIABLES: # An optional map of environment variables for CRA, where the key is the variable name and value is the value. Useful for providing TF_VARs.
description="The IBM Cloud platform API key needed to deploy IAM enabled resources."
6
7
type=string
7
-
description="The IBM Cloud API Key"
8
8
sensitive=true
9
9
}
10
10
11
-
variable"region" {
11
+
variable"prefix" {
12
+
description="Display name of the prefix for related resources"
12
13
type=string
13
-
description="Region to provision all resources created by this example"
14
-
default="us-south"
14
+
default="scc-wp"
15
15
}
16
16
17
-
variable"prefix" {
17
+
variable"region" {
18
+
description="Name of the Region to deploy into"
18
19
type=string
19
-
description="Prefix to append to all resources created by this example"
20
-
default="basic"
20
+
default="us-south"
21
21
}
22
22
23
23
variable"resource_group" {
24
24
type=string
25
-
description="The name of an existing resource group to provision resources in to. If not set a new resource group will be created using the prefix variable"
25
+
description="An existing resource group name to use for this example, if unset a new resource group will be created"
26
26
default=null
27
27
}
28
28
29
+
29
30
variable"resource_tags" {
30
31
type=list(string)
31
32
description="Optional list of tags to be added to created resources"
32
33
default=[]
33
34
}
35
+
36
+
variable"access_tags" {
37
+
type=list(string)
38
+
description="Optional list of access management tags to add to the SCC WP instance"
0 commit comments