SAP BTP subaccount with environment configuration

This building block Creates a subaccount in SAP BTP.

How to use this Building Block in meshStack

  1. Go to your meshStack admin area and click on "Building Blocks" from the left pane
  2. Click on "Create Building Block"
  3. Fill out the general information and click next
  4. Select any of the platforms as your supported platform to attach this building block to.
  5. Select "Terraform" in Implementation Type and put in the Terraform version
  6. Copy the repository HTTPS address to the "Git Repository URL" field (if its a private repo, add your SSH key) click next
  7. For the inputs do the following
    • Backend configuration:
      • Select "File" as input type and upload the backend.tf file.
      • Add related environment variables based on your backend configuration (e.g. client_id and client_secret for azure, SA_ID and SA_EMAIL for GCS)
    • SAP Account Variables:
      • BTP_USERNAME and BTP_PASSWORD as Environment variable
    • Add rest of the variables in variables.tf as you desired
  8. On the next page, add the outputs from outputs.tf file and click on Create Building Block
  9. Now users can add this building block to their tenants

Requirements

NameVersion
btp0.6.0-beta2

Modules

No modules.

Resources

NameType
btp_subaccount.subaccountopen in new windowresource

Inputs

NameDescriptionTypeDefaultRequired
globalaccountThe subdomain of the global account in which you want to manage resources.stringn/ayes
projectThe meshStack project identifier.stringn/ayes
regionThe region of the subaccount.stringn/ayes
workspaceThe meshStack workspace identifier.stringn/ayes

Outputs

NameDescription
btp_subaccount_idn/a
btp_subaccount_namen/a
btp_subaccount_regionn/a

Source code & Installation

The source code of this kit module can be found hereopen in new window

Run the following command to install the kit module:

collie kit import sap-btp/subaccount
1