Skip to content

Latest commit

 

History

History

domain_mapping

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Code Engine domain mapping module

You can use this submodule to provision IBM Code Engine Domain Mapping.

Usage

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

module "domain_mapping" {
  source        = "terraform-ibm-modules/code-engine/ibm//modules/domain_mapping"
  version       = "latest" # Replace "latest" with a release version to lock into a specific release
  project_id    = "project_id"
  name          = "domain_mapping_name"
  tls_secret    = "my_tls_secret" # pragma: allowlist 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_domain_mapping.ce_domain_mapping resource

Inputs

Name Description Type Default Required
components A reference to another component.
list(object({
name = string
resource_type = string
}))
n/a yes
name The name of the domain mapping. string n/a yes
project_id The ID of the project where domain mapping will be created. string n/a yes
tls_secret The name of the TLS secret that holds the certificate and private key of this domain mapping. string n/a yes

Outputs

Name Description
domain_mapping_id The ID of the created code engine domain mapping.
id The unique identifier of the created code engine domain mapping.
name The name of the created code engine domain mapping.