An open API service indexing awesome lists of open source software.

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

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"
}
```