-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'ks-add-prefix-val' of https://github.com/terraform-ibm-…
…modules/terraform-ibm-cos into ks-add-prefix-val
- Loading branch information
Showing
28 changed files
with
550 additions
and
939 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule common-dev-assets
updated
8 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# Configuring complex inputs for COS in IBM Cloud projects | ||
|
||
Several optional input variables in the IBM Cloud [COS deployable architecture](https://cloud.ibm.com/catalog#deployable_architecture) use complex object types. You specify these inputs when you configure deployable architecture. | ||
|
||
* Context-Based Restrictions Rules (`instance_cbr_rules`) | ||
|
||
|
||
## Rules For Context-Based Restrictions <a name="instance_cbr_rules"></a> | ||
|
||
The `instance_cbr_rules` input variable allows you to provide a rule for the target service to enforce access restrictions for the service based on the context of access requests. Contexts are criteria that include the network location of access requests, the endpoint type from where the request is sent, etc. | ||
|
||
- Variable name: `instance_cbr_rules`. | ||
- Type: A list of objects. Allows only one object representing a rule for the target service | ||
- Default value: An empty list (`[]`). | ||
|
||
### Options for instance_cbr_rules | ||
|
||
- `description` (required): The description of the rule to create. | ||
- `account_id` (required): The IBM Cloud Account ID | ||
- `rule_contexts` (required): (List) The contexts the rule applies to | ||
- `attributes` (optional): (List) Individual context attributes | ||
- `name` (required): The attribute name. | ||
- `value` (required): The attribute value. | ||
|
||
- `enforcement_mode` (required): The rule enforcement mode can have the following values: | ||
- `enabled` - The restrictions are enforced and reported. This is the default. | ||
- `disabled` - The restrictions are disabled. Nothing is enforced or reported. | ||
- `report` - The restrictions are evaluated and reported, but not enforced. | ||
- `tags` (optional): (List) Resource Tags . | ||
- `name` (required): The Tag name. | ||
- `value` (required): The Tag value. | ||
- `operations` (optional): The operations this rule applies to | ||
- `api_types`(required): (List) The API types this rule applies to. | ||
- `api_type_id`(required):The API type ID | ||
|
||
### Example Rule For Context-Based Restrictions Configuration | ||
|
||
```hcl | ||
instance_cbr_rules = [ | ||
{ | ||
description = "COS can be accessed from xyz" | ||
account_id = "defc0df06b644a9cabc6e44f55b3880s." | ||
rule_contexts= [{ | ||
attributes = [ | ||
{ | ||
"name" : "endpointType", | ||
"value" : "private" | ||
}, | ||
{ | ||
name = "networkZoneId" | ||
value = "93a51a1debe2674193217209601dde6f" # pragma: allowlist secret | ||
} | ||
] | ||
} | ||
] | ||
enforcement_mode = "enabled" | ||
resources = [{ | ||
tags { | ||
name = "tag_name" | ||
value = "tag_value" | ||
} | ||
}] | ||
operations = [{ | ||
api_types = [{ | ||
api_type_id = "crn:v1:bluemix:public:context-based-restrictions::::api-type:" | ||
}] | ||
}] | ||
} | ||
] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
provider "ibm" { | ||
ibmcloud_api_key = var.ibmcloud_api_key | ||
ibmcloud_timeout = 60 | ||
visibility = var.provider_visibility | ||
} |
Oops, something went wrong.