Skip to content

Commit 45f654a

Browse files
committed
feat: integration suite setup on trial
1 parent fdc27ac commit 45f654a

File tree

15 files changed

+96
-23
lines changed

15 files changed

+96
-23
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
output "directory_id" {
2-
description = "The ID of the created directory"
2+
description = "The ID of the directory"
33
value = btp_directory.self.id
44
}

released/usecases/trial_integration_suite/01_base_setup_directory/provider.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ terraform {
55
version = "~> 1.10.0"
66
}
77
}
8-
98
}
109

1110
provider "btp" {
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
globalaccount = "<Subdomain of your Global Account>"
2+
features = ["DEFAULT", "ENTITLEMENTS", "AUTHORIZATIONS"]
3+
project_costcenter = "54321"
4+
entitlement_assignments = [
5+
{
6+
name = "integrationsuite-trial"
7+
plan = "trial"
8+
amount = 1
9+
distribute = false
10+
auto_assign = false
11+
},
12+
// can be added only after fix of https://github.com/SAP/terraform-provider-btp/issues/930
13+
/* {
14+
name = "APPLICATION_RUNTIME"
15+
plan = "MEMORY"
16+
amount = 2
17+
distribute = false
18+
auto_assign = false
19+
},*/
20+
]
21+
// The user executing the script gets automatically added to the directory
22+
role_collection_assignments = [
23+
{
24+
role_collection_name = "Directory Administrator"
25+
users = ["[email protected]"]
26+
},
27+
{
28+
role_collection_name = "Directory Viewer"
29+
users = ["[email protected]"]
30+
}
31+
]

released/usecases/trial_integration_suite/01_base_setup_directory/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ variable "directory_description" {
1616
}
1717

1818
variable "features" {
19-
description = "Stage of the subaccount"
19+
description = "Directory features to be activated"
2020
type = list(string)
2121
default = ["DEFAULT"]
2222
validation {

released/usecases/trial_integration_suite/02_base_setup_subaccount/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ output "subaccount_id" {
33
value = btp_subaccount.project_subaccount.id
44
}
55

6-
output "cf_sapce_id" {
6+
output "cf_space_id" {
77
description = "The ID of the Cloud Foundry space"
88
value = cloudfoundry_space.project_space.id
99
}

released/usecases/trial_integration_suite/02_base_setup_subaccount/provider.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ terraform {
99
version = "~> 1.3.0"
1010
}
1111
}
12-
1312
}
1413

1514
provider "btp" {
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
globalaccount = "<Subdomain of your Global Account>"
2+
parent_id = "outout directory_id of step 1"
3+
project_costcenter = "54321"
4+
emergency_admins = ["[email protected]"]
5+
space_managers = ["[email protected]"]
6+
space_developers = ["[email protected]"]

released/usecases/trial_integration_suite/02_base_setup_subaccount/variables.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ variable "cf_landscape_label" {
4141
default = "us10-001"
4242
validation {
4343
condition = contains(["us10-001", "ap21"], var.cf_landscape_label)
44-
error_message = "Landscape must be one of us10-001 or ap21"
44+
error_message = "Trial landscape must be one of us10-001 or ap21"
4545
}
4646
}
4747

@@ -70,5 +70,4 @@ variable "space_developers" {
7070
description = "List of space developers"
7171
type = list(string)
7272
default = []
73-
7473
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
globalaccount = "<Subdomain of your Global Account>"
2+
subaccount_id = "Output subaccount_id of step 2"
3+
integration_provisioners = ["[email protected]"]

released/usecases/trial_integration_suite/03_base_setup_integration_app/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ variable "subaccount_id" {
99
}
1010

1111
variable "integration_provisioners" {
12-
description = "List of integration provisioners"
12+
description = "List of user that should be assigned as integration provisioners"
1313
type = list(string)
1414
default = []
1515
}

0 commit comments

Comments
 (0)