Skip to content

Commit

Permalink
fix: remove unsupported plans (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
vbontempi authored Dec 13, 2024
1 parent 47437e8 commit 934db89
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 21 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ For information, see "Module names and descriptions" at
https://terraform-ibm-modules.github.io/documentation/#/implementation-guidelines?id=module-names-and-descriptions
-->

Use this module to provision and configure an [Enterprise Application Service](https://test.cloud.ibm.com/catalog/services/ease) instance on IBM Cloud.
Use this module to provision and configure an [Enterprise Application Service](https://cloud.ibm.com/catalog/services/enterprise-application-service) instance on IBM Cloud.


<!-- The following content is automatically populated by the pre-commit hook -->
Expand All @@ -47,7 +47,7 @@ https://terraform-ibm-modules.github.io/documentation/#/implementation-guideline
This module has the following prerequisites as mandatory input parameters:

1. The IBM Cloud API Key (https://cloud.ibm.com/iam/apikeys) for the account where to deploy the Enterprise Application Service instance
1. Resource Group ID (https://test.cloud.ibm.com/account/resource-groups) containing the Enterprise Application Service instance
1. Resource Group ID (https://cloud.ibm.com/account/resource-groups) containing the Enterprise Application Service instance

Optionally, the following optional input parameters are required in order to pre-configure the Enterprise Application Service instance:

Expand Down Expand Up @@ -159,7 +159,7 @@ No modules.
|------|-------------|------|---------|:--------:|
| <a name="input_config_repo"></a> [config\_repo](#input\_config\_repo) | The URL for the repository storing the configuration to use for the application to deploy through IBM Cloud Enterprise Application Service. | `string` | `null` | no |
| <a name="input_ease_name"></a> [ease\_name](#input\_ease\_name) | The name for the newly provisioned Enterprise Application Service instance. | `string` | n/a | yes |
| <a name="input_plan"></a> [plan](#input\_plan) | The desired pricing plan for Enterprise Application Service instance. | `string` | `"free"` | no |
| <a name="input_plan"></a> [plan](#input\_plan) | The desired pricing plan for Enterprise Application Service instance. | `string` | `"standard"` | no |
| <a name="input_region"></a> [region](#input\_region) | The desired region for deploying Enterprise Application Service instance. | `string` | `"us-east"` | no |
| <a name="input_repos_git_token"></a> [repos\_git\_token](#input\_repos\_git\_token) | The GitHub token to read from the application and configuration repos. It cannot be null if var.source\_repo and var.config\_repo are not null. | `string` | `null` | no |
| <a name="input_resource_group_id"></a> [resource\_group\_id](#input\_resource\_group\_id) | The ID of the resource group to use for the creation of the Enterprise Application Service instance. | `string` | n/a | yes |
Expand Down
2 changes: 1 addition & 1 deletion examples/basic/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ variable "resource_group" {
variable "plan" {
type = string
description = "The desired pricing plan for IBM Enterprise Application Service instance."
default = "free"
default = "standard"
}

variable "region" {
Expand Down
2 changes: 1 addition & 1 deletion examples/complete/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ variable "resource_group" {
variable "plan" {
type = string
description = "The desired pricing plan for IBM Enterprise Application Service instance."
default = "free"
default = "standard"
}

variable "region" {
Expand Down
9 changes: 0 additions & 9 deletions ibm_catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,20 +107,11 @@
},
{
"key": "plan",
"default_value": "free",
"required": true,
"options": [
{
"displayname": "Standard",
"value": "standard"
},
{
"displayname": "Free",
"value": "free"
},
{
"displayname": "Trial (only available in test.cloud.ibm.com)",
"value": "trial"
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion solutions/standard/catalogValidationValues.json.template
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"region": "us-east",
"resource_tags": $TAGS,
"prefix": $PREFIX,
"plan": "free",
"plan": "standard",
"subscription_id": "testvalue"
}
6 changes: 3 additions & 3 deletions solutions/standard/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ variable "resource_group" {
variable "plan" {
type = string
description = "The desired pricing plan for IBM Enterprise Application Service instance."
default = "free"
default = "standard"
validation {
condition = contains(["trial", "standard", "free", "staging"], var.plan)
error_message = "The only values accepted for the plan field are free, standard, staging and trial."
condition = contains(["standard"], var.plan)
error_message = "The only values accepted for the plan field is standard."
}
}

Expand Down
6 changes: 3 additions & 3 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ variable "tags" {
variable "plan" {
type = string
description = "The desired pricing plan for Enterprise Application Service instance."
default = "free"
default = "standard"
validation {
condition = contains(["trial", "standard", "free", "staging"], var.plan)
error_message = "The only values accepted for the plan field are free, standard, staging and trial."
condition = contains(["standard"], var.plan)
error_message = "The only values accepted for the plan field is standard."
}
}

Expand Down

0 comments on commit 934db89

Please sign in to comment.