Skip to content

Commit cb6325e

Browse files
committed
update sample
1 parent 28c5aa5 commit cb6325e

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

released/SAP-Inside-Tracks/SITBLR_DEC_2024/exercises/EXERCISE3/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ resource "btp_subaccount_entitlement" "bas" {
6464
subaccount_id = btp_subaccount.project.id
6565
service_name = var.bas_service_name
6666
plan_name = var.bas_plan
67-
amount = 1
6867
}
6968
7069
resource "btp_subaccount_subscription" "bas" {

released/SAP-Inside-Tracks/SITBLR_DEC_2024/exercises/EXERCISE3/SOLUTION_EX3/main.tf

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,13 @@ resource "btp_subaccount" "project" {
2727

2828
resource "btp_subaccount_entitlement" "bas" {
2929
subaccount_id = btp_subaccount.project.id
30-
service_name = "sapappstudio"
30+
service_name = var.bas_service_name
3131
plan_name = var.bas_plan
32-
amount = 1
3332
}
3433

3534
resource "btp_subaccount_subscription" "bas" {
3635
subaccount_id = btp_subaccount.project.id
37-
app_name = "sapappstudio"
36+
app_name = var.bas_service_name
3837
plan_name = var.bas_plan
3938
depends_on = [btp_subaccount_entitlement.bas]
4039
}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
globalaccount = "<YOUR GLOBAL ACCOUT SUBDOMAIN>"
2-
2+
bas_service_name = "sapappstudiotrial"
33
bas_plan = "trial"
4-
54
65
bas_developers = ["[email protected]", "[email protected]"]

released/SAP-Inside-Tracks/SITBLR_DEC_2024/exercises/EXERCISE3/SOLUTION_EX3/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ variable "bas_developers" {
7878
type = list(string)
7979
description = "List of users to assign the Developer role."
8080
}
81+
variable "bas_service_name" {
82+
type = string
83+
description = "Service name for Business Application Studio."
84+
default = "sapappstudio"
85+
86+
}
8187
variable "bas_plan" {
8288
type = string
8389
description = "Plan name for Business Application Studio."

0 commit comments

Comments
 (0)