Skip to content

kyma-project/terraform-module

terraform-sap-kyma-on-btp

Status

REUSE status

Overview

Terraform module that creates kyma runtime in SAP BTP platform.

image

Input Variables (TF vars)

NAME MANDATORY DEFAULT VALUE DESCRIPTION
BTP_GLOBAL_ACCOUNT true UUID of SAP BTP Global Account
BTP_BOT_USER true Email of the technical user (shared mailbox)
BTP_BOT_PASSWORD true Password of the techniacal user (created when inviting shared mailbox into custom SAP IAS tenant)
BTP_USE_SUBACCOUNT_ID false Provide an UUID of existing SAP BTP Subaccount to be used. Should not be combined with BTP_NEW_SUBACCOUNT_* inputs.
BTP_NEW_SUBACCOUNT_NAME false Provide a name for a new SAP BTP Subaccount to be created. Should not be combined with BTP_USE_SUBACCOUNT_ID input.
BTP_NEW_SUBACCOUNT_REGION false Provide a region for a new SAP BTP Subaccount to be created. Should not be combined with BTP_USE_SUBACCOUNT_ID input.
BTP_CUSTOM_IAS_TENANT true Provide the name of the custom SAP IAS tenant that is an authentication provider for the technical user.
BTP_CUSTOM_IAS_DOMAIN false accounts.ondemand.com Domain of the identity provider (on canary and staging environments this has to be set to accounts400.ondemand.com)
BTP_BACKEND_URL false https://cli.btp.cloud.sap URL of the BTP backend API (on canary environment this has to be set to https://cpcli.cf.sap.hana.ondemand.com).
BTP_KYMA_PLAN false azure Use one of a valid kyma plans that you are entitled to use (One of: azure, gcp, aws,sap-converged-cloud)
BTP_KYMA_REGION false westeurope Use a valid kyma region that matches your selected kyma plan
BTP_PROVIDER_SUBACCOUNT_ID false Use a UUID of a SAP BTP Subaccount where you already have a sharable service instances which you would like to reference in the new kyma runtime

Outputs

Name Condition for output presence Description
custom_service_manager_credentials Present only if BTP _PROVIDER_SUBACCOUNT_ID was given as input Contains json-decoded parts of the provider subaccount's service manager secret data. Allows to reference a shared service instances from another (provider) subaccount
kubeconfig Always yaml-encoded parts of the output kubeconfig. It can be used to initialise terraform kubernetes provider in the root module
subaccount_id Always subaccount ID of the created subaccount. It can be used to forcefully cleanup the subaccount i.e via BTP CLI

Running terraform-sap-kyma-on-btp module

The module should be included as a child module, and provided with a configured sap/btp terraform provider. The root module must define the values for the input variables. Go to the included examples.