Skip to content

Files

Code Engine secret module

You can use this submodule to provision IBM Code Engine Secret.

Usage

provider "ibm" {
  ibmcloud_api_key = "XXXXXXXXXX" # pragma: allowlist secret
  region           = "us-south"
}

module "secret" {
  source     = "terraform-ibm-modules/code-engine/ibm//modules/secret"
  version    = "latest" # Replace "latest" with a release version to lock into a specific release
  project_id = "project_id"
  name       = "secret_name"
  format     = "generic"
  data       = { "secret_key_1" : "secret_value_1", "secret_key_2" : "secret_value_2" }
}

Required IAM access policies

You need the following permissions to run this module.

  • IAM Services
    • Code Engine service
      • Editor platform access
      • Writer service access

Requirements

Name Version
terraform >= 1.3.0
ibm >= 1.74.0, <2.0.0

Modules

No modules.

Resources

Name Type
ibm_code_engine_secret.ce_secret resource

Inputs

Name Description Type Default Required
data Data container that allows to specify config parameters and their values as a key-value map. map(string) {} no
format Specify the format of the secret. string n/a yes
name The name of the secret. string n/a yes
project_id The ID of the project where secret will be created. string n/a yes

Outputs

Name Description
id The unique identifier of the created code engine secret.
name The name of created code engine secret.
secret_id The ID of the created code engine secret.