Skip to content

Mission: 4356 & 4038- Added free plan for integration suite & minor fix #307

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions released/discovery_center/mission_4038/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,4 @@ You probably want to remove the assets after trying them out to avoid unnecessar
```bash
terraform destroy
```

2 changes: 2 additions & 0 deletions released/discovery_center/mission_4038/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ resource "btp_subaccount_entitlement" "sap_integration_suite" {
subaccount_id = data.btp_subaccount.dc_mission.id
service_name = local.service_name__sap_integration_suite
plan_name = var.service_plan__sap_integration_suite
amount = var.service_plan__sap_integration_suite == "free" ? 1 : null
}

data "btp_subaccount_subscriptions" "all" {
Expand All @@ -123,3 +124,4 @@ resource "btp_subaccount_role_collection_assignment" "int_prov" {
role_collection_name = "Integration_Provisioner"
user_name = each.value
}

2 changes: 1 addition & 1 deletion released/discovery_center/mission_4038/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ output "subaccount_id" {

output "integrationsuite_url" {
value = btp_subaccount_subscription.sap_integration_suite.subscription_url
description = "Subscription URL for SAP Business Process Automation"
description = "Subscription URL for SAP Integration Suite."
}
2 changes: 1 addition & 1 deletion released/discovery_center/mission_4038/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
terraform {
required_providers {
btp = {
source = "sap/btp"
source = "SAP/btp"
version = "~> 1.5.0"
}
}
Expand Down
4 changes: 2 additions & 2 deletions released/discovery_center/mission_4038/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ variable "service_plan__sap_integration_suite" {
description = "The plan for SAP Integration Suite"
default = "enterprise_agreement"
validation {
condition = contains(["enterprise_agreement"], var.service_plan__sap_integration_suite)
error_message = "Invalid value for service_plan__sap_integration_suite. Only 'enterprise_agreement' are allowed."
condition = contains(["free", "enterprise_agreement"], var.service_plan__sap_integration_suite)
error_message = "Invalid value for service_plan__sap_integration_suite. Only 'free' and 'enterprise_agreement' are allowed."
}
}

Expand Down
1 change: 1 addition & 0 deletions released/discovery_center/mission_4356/step1/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ resource "btp_subaccount_entitlement" "sap_integration_suite" {
subaccount_id = data.btp_subaccount.dc_mission.id
service_name = local.service_name__sap_integration_suite
plan_name = var.service_plan__sap_integration_suite
amount = var.service_plan__sap_integration_suite == "free" ? 1 : null
}

data "btp_subaccount_subscriptions" "all" {
Expand Down
10 changes: 10 additions & 0 deletions released/discovery_center/mission_4356/step1/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
output "globalaccount" {
value = var.globalaccount
description = "The globalaccount subdomain."
}

output "cli_server_url" {
value = var.cli_server_url
description = "The BTP CLI server URL."
}

output "subaccount_id" {
value = data.btp_subaccount.dc_mission.id
description = "The ID of the subaccount."
Expand Down
2 changes: 1 addition & 1 deletion released/discovery_center/mission_4356/step1/provider.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
btp = {
source = "sap/btp"
source = "SAP/btp"
version = "1.5.0"
}
}
Expand Down
6 changes: 3 additions & 3 deletions released/discovery_center/mission_4356/step1/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ variable "service_plan__sap_integration_suite" {
description = "The plan for SAP Integration Suite"
default = "enterprise_agreement"
validation {
condition = contains(["enterprise_agreement"], var.service_plan__sap_integration_suite)
error_message = "Invalid value for service_plan__sap_integration_suite. Only 'enterprise_agreement' is allowed."
condition = contains(["free", "enterprise_agreement"], var.service_plan__sap_integration_suite)
error_message = "Invalid value for service_plan__sap_integration_suite. Only 'free' and 'enterprise_agreement' are allowed."
}
}

Expand Down Expand Up @@ -205,5 +205,5 @@ variable "cf_space_developers" {
variable "create_tfvars_file_for_step2" {
type = bool
description = "Switch to enable the creation of the tfvars file for step 2."
default = false
default = true
}
12 changes: 12 additions & 0 deletions released/discovery_center/mission_4356/step2/provider.tf
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
terraform {
required_providers {
btp = {
source = "SAP/btp"
version = "1.5.0"
}
cloudfoundry = {
source = "SAP/cloudfoundry"
version = "1.0.0-rc1"
}
}
}

######################################################################
# Configure BTP provider
######################################################################
provider "btp" {
cli_server_url = var.cli_server_url
globalaccount = var.globalaccount
}

######################################################################
# Configure CF provider
######################################################################
Expand Down