Technology Blog Posts by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
WouterLemaire
SAP Mentor
SAP Mentor
0 Kudos
262

In this tutorial, we guide you through creating a Terraform script for BTP (Business Technology Platform). The script focuses on setting up two directories and five sub-accounts, following specific naming conventions and a landscape setup explained in earlier sessions. Key steps include defining resources for directories and sub-accounts, assigning unique identifiers, and linking sub-accounts to their respective directories. We also explain how to configure environment-specific sub-accounts, including development, acceptance, and production, and provide insights into using Terraform's provider documentation for further customization.

Takeaways

  • The script demonstrates how to create a Terraform configuration for SAP Business Technology Platform (BTP).
  • The configuration involves creating two directories and five sub-accounts, in line with the naming conventions discussed in an earlier session.
  • The script starts with the creation of directories in BTP, defining them as resources with unique identifiers.
  • The directories are named according to a specific convention: <sequence nr> - <name> (<dir acronym>)
    • 1 – Administration (ADM)

    • 2 – Applications (APP)

    • 3 – Database (DB)

  • Each sub-account is assigned a unique name following the naming conventions: : <sequence nr DIR><sequence nr SA> - <DIR acronym> - <stage name>
    • SA sequence nr 🡪 0 = SND, 1 = DEV, 2 = ACC, 3 = PRD

    • 10 - ADM – SND

    • 14 – ADM – PRD

    • 21 – APP – DEV

    • 22 – APP – ACC

    • 23 – APP – PRD

  • The region specified for the trial account is US10, but this can be adjusted depending on the actual account region.
  • Beta features can be enabled, though the account is not intended for production usage.
  • The parent ID is used to link each sub-account to the respective directory (either administration or application directory).
  • The script includes the creation of both administration and application sub-accounts with varying environments: development, acceptance, and production.