Skip to content

Commit c9e72ee

Browse files
committed
docs: refinement of docs
1 parent 1ef0b51 commit c9e72ee

File tree

2 files changed

+65
-10
lines changed
  • sample-setup
    • basic-setup/subaccount-setup
    • modules/sap-btp-subaccount-default-entitlements

2 files changed

+65
-10
lines changed

sample-setup/basic-setup/subaccount-setup/README.md

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,48 @@
22

33
## Assumptions
44

5-
- We assume that we use the directories as structuring element for the subaccounts i.e., un an unmanaged fashion.
6-
- We assume that we do the directory setup in one run for all involved departments.
5+
- We assume a bsaic setup of a subaccount is executed by the platform team/ SAP BTP administrator team
6+
- We assume that the responsibility of the platform team is restricted to a basic setup of a subacount leaving out app subscriptions and service instance creation.
77

88
## Design Decsions
99

10-
We decouple the directory creation i.e., the setup of the basic structure from the creation of the operational units namely the subaccounts inside of the directory. The changes on directory level are probably a rare sceanrio compared to the subaccounts (depending on their stage) and we therefore want to avoid side effects as well as lengthy state refreshes.
10+
To keep the Terraform state files clearly seperated the setup is done per subaccount i.e. per stage.
1111

1212
## Subaccount Setup
1313

14-
- Basic setup of a subaccount. Every subaccount is created seperately
15-
- Naming Conventions and Labels
16-
- Validation of Geo Region and Subaccount region
17-
- Default Setup of custom IdP
18-
- Provision CF env (optional)
19-
- Execute default plus à la carte entitlements
14+
The setup of the subaccount comprises:
15+
16+
- The setup of a subaccount in accordance to the naming conventions and labeling startegy of the company
17+
- The trust configuration to a custom IdP is configured by default.
18+
- Default entitlements are added depending on the stage. In addition the requesting team can add additional project specific entitlements ("à la carte entitlements")
19+
- Optionally a Cloud Foundry Environment is created
20+
21+
### Naming Conventions and Labels
22+
23+
The naming conventions and labels are centralized in the module [sap-btp-naming-conventions-subaccount](../../modules/sap-btp-naming-conventions-subaccount/README.md). The names and labels are drived based on input variables defined in the [variables.tf](./variables.tf) file.
2024

2125
### Validations for Geographies and BTP Regions
2226

23-
### Trust Configuration for Custom IdP
27+
According to the SAP BTP Administrators Guide one part of the naming is the geographical region. To ensure that this region fits to the subaccount region, a validation is implemented in the [variables.tf](./variables.tf) file. The validation checks if the region of the subaccount is part of the geographical region. The geographical regions are defined in a local variable sdefined in the [main.tf](main.tf) file.
2428

2529
### Setup of Entitlements
2630

31+
The setup of entitlements is split into two parts:
32+
33+
- The default entitlements that are defined per stage and sourced from the module [](../../modules/sap-btp-subaccount-default-entitlements/README.md)
34+
- Optional additional entitlements that might be needed due to project specific requirements. These entitlements are defined in the [variables.tf](./variables.tf) file
35+
36+
The configuration merges the two files and adds the entitlements to the subaccount.
37+
2738
### Setup of Cloud Foundry Environment
39+
40+
The setup of a Cloud Foundry environment is optional. The caller can decide if a Cloud Foundry environment is required or not e.g. when setting up a shared subaccount. The boolean variable is `provision_cf_environment` in the [variables.tf](./variables.tf) file.
41+
42+
43+
### Output
44+
45+
The output defined in the [outputs.tf](./outputs.tf) file returns the main information relevant for the development team namely:
46+
47+
- a link to the subaccount
48+
- The ID of the Cloud Foundry org
49+
- The API endpoint of the Cloud Foundry environment
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# SAP BTP - Default Subaccount Entitlements
2+
3+
This module encapsulates the default entitlements for SAP BTP subaccounts. It distinguishes between the different stages of the environment (Dev, Test, Prod, Shared) and provides a default set of entitlements for each stage.
4+
5+
## Requirements
6+
7+
| Name | Version |
8+
|------|---------|
9+
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.11 |
10+
11+
## Providers
12+
13+
No providers.
14+
15+
## Modules
16+
17+
No modules.
18+
19+
## Resources
20+
21+
No resources.
22+
23+
## Inputs
24+
25+
| Name | Description | Type | Default | Required |
26+
|------|-------------|------|---------|:--------:|
27+
| <a name="input_stage"></a> [stage](#input\_stage) | Stage of the environment to be setup up.<br/>Possible values: `Dev`, `Test`, `Prod`, `Shared`. | `string` | n/a | yes |
28+
29+
## Outputs
30+
31+
| Name | Description |
32+
|------|-------------|
33+
| <a name="output_default_entitlements_for_stage"></a> [default\_entitlements\_for\_stage](#output\_default\_entitlements\_for\_stage) | Default entitlements for stage specified by the stage variable |

0 commit comments

Comments
 (0)