https://github.com/terraform-ibm-modules/terraform-ibm-toolkit-key-protect
Terraform module to provision Key Protect into an account
https://github.com/terraform-ibm-modules/terraform-ibm-toolkit-key-protect
Last synced: 5 months ago
JSON representation
Terraform module to provision Key Protect into an account
- Host: GitHub
- URL: https://github.com/terraform-ibm-modules/terraform-ibm-toolkit-key-protect
- Owner: terraform-ibm-modules
- Created: 2020-07-13T19:26:43.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-08-26T16:24:16.000Z (over 2 years ago)
- Last Synced: 2023-03-03T23:23:45.469Z (about 2 years ago)
- Language: HCL
- Size: 38.1 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Key Protect terraform module
Provisions an instance of Key Protect in the account.
**Note:** This module follows the Terraform conventions regarding how provider configuration is defined within the Terraform template and passed into the module - https://www.terraform.io/docs/language/modules/develop/providers.html. The default provider configuration flows through to the module.
If different configuration is required for a module, it can be explicitly passed in the `providers` block of the module - https://www.terraform.io/docs/language/modules/develop/providers.html#passing-providers-explicitly.
## Example usage
[Refer to test cases for more details](test/stages/stage2-key-protect.tf)
```hcl-terraform
terraform {
required_providers {
ibm = {
source = "ibm-cloud/ibm"
}
}
required_version = ">= 0.13"
}provider "ibm" {
ibmcloud_api_key = var.ibmcloud_api_key
region = var.region
}module "dev_key_protect" {
source = "./module"resource_group_name = module.resource_group.name
region = var.region
name_prefix = var.name_prefix
provision = true
}module "dev_infrastructure_keyprotect" {
source = "github.com/ibm-garage-cloud/terraform-ibm-key-protect?ref=v1.0.0"resource_group_name = module.dev_cluster.resource_group_name
resource_location = module.dev_cluster.region
cluster_id = module.dev_cluster.id
namespaces = []
namespace_count = 0
name_prefix = var.name_prefix
tags = []
plan = "tiered-pricing"
}
```