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
- Host: GitHub
- URL: https://github.com/terraform-ibm-modules/terraform-ibm-toolkit-kms-key
- Owner: terraform-ibm-modules
- Created: 2021-05-04T18:08:31.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-12-08T20:10:41.000Z (over 2 years ago)
- Last Synced: 2023-03-03T23:23:45.427Z (about 2 years ago)
- Language: HCL
- Size: 28.3 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
}
```