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

https://github.com/terraform-ibm-modules/terraform-ibm-toolkit-kms-key

Module to create or lookup a Key from the Key Management
https://github.com/terraform-ibm-modules/terraform-ibm-toolkit-kms-key

Last synced: 5 months ago
JSON representation

Module to create or lookup a Key from the Key Management

Awesome Lists containing this project

README

        

# KMS Key

Module to manage the Key Management System key. A new key can either be provisioned or an existing key can be looked up.

## Software dependencies

The module depends on the following software components:

### Command-line tools

- terraform - v13

### Terraform providers

- IBM Cloud provider >= 1.22.0

## Module dependencies

This module makes use of the output from other modules:

- KMS module
- github.com/ibm-garage-cloud/terraform-ibm-key-protect.git
- github.com/ibm-garage-cloud/terraform-ibm-hpcs.git

## Example usage

[Refer test cases for more details](test/stages/stage2-kms-key.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 "kms_key" {
source = "github.com/cloud-native-toolkit/terraform-ibm-kms-key.git"

name = var.kms_key_name
provision = var.kms_key_provision
kms_id = module.kms.guid
}
```