Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Code Engine binding module

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

Usage

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

module "binding" {
  source      = "terraform-ibm-modules/code-engine/ibm//modules/binding"
  version     = "latest" # Replace "latest" with a release version to lock into a specific release
  project_id  = "project_id"
  prefix      = "prefix"
  secret_name = "my-secret"
  components  = [{
                  name          = "app_name"
                  resource_type = "app_v2"
                }]
}

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.63.0, <2.0.0

Modules

No modules.

Resources

Name Type
ibm_code_engine_binding.ce_binding resource

Inputs

Name Description Type Default Required
components A reference to another component.
list(object({
name = string
resource_type = string
}))
n/a yes
prefix Value that is set as prefix in the component that is bound. string n/a yes
project_id The ID of the project where binding will be created. string n/a yes
secret_name The service access secret that is binding to a component. string n/a yes

Outputs

Name Description
binding_id The ID of the created code engine binding.
id The unique identifier of the created code engine binding.