Skip to content
Merged
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
4 changes: 2 additions & 2 deletions examples/basic/version.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ terraform {
required_providers {
ibm = {
source = "IBM-Cloud/ibm"
version = ">= 1.66.0"
version = ">= 1.70.1"
}
restapi = {
source = "Mastercard/restapi"
version = "1.20.0"
version = "2.0.1"
}
}
}
4 changes: 2 additions & 2 deletions examples/complete/version.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ terraform {
required_providers {
ibm = {
source = "IBM-Cloud/ibm"
version = ">= 1.66.0"
version = ">= 1.70.1"
}
restapi = {
source = "Mastercard/restapi"
version = "1.20.0"
version = ">= 2.0.1"
}
}
}
25 changes: 13 additions & 12 deletions modules/configure_project/main.tf
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
resource "restapi_object" "configure_project" {
path = local.dataplatform_api
read_path = "${local.dataplatform_api}{id}"
read_method = "GET"
create_path = "${local.dataplatform_api}/transactional/v2/projects?verify_unique_name=true"
create_method = "POST"
id_attribute = "location"
destroy_method = "DELETE"
destroy_path = "${local.dataplatform_api}/transactional{id}"
data = <<-EOT
path = local.dataplatform_api
read_path = "${local.dataplatform_api}{id}"
read_method = "GET"
create_path = "${local.dataplatform_api}/transactional/v2/projects?verify_unique_name=true"
create_method = "POST"
id_attribute = "location"
ignore_all_server_changes = true
destroy_method = "DELETE"
destroy_path = "${local.dataplatform_api}/transactional{id}"
data = <<-EOT
{
"name": "${var.project_name}",
"generator": "terraform-ibm-watsonx-ai",
Expand Down Expand Up @@ -36,9 +37,9 @@ resource "restapi_object" "configure_project" {
}
}
EOT
update_method = "PATCH"
update_path = "${local.dataplatform_api}{id}"
update_data = <<-EOT
update_method = "PATCH"
update_path = "${local.dataplatform_api}{id}"
update_data = <<-EOT
{
"name": "${var.project_name}",
"type": "wx",
Expand Down
2 changes: 1 addition & 1 deletion modules/configure_project/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {
required_providers {
restapi = {
source = "Mastercard/restapi"
version = ">= 1.19.1"
version = ">= 2.0.1, < 3.0.0"
}
time = {
source = "hashicorp/time"
Expand Down
23 changes: 12 additions & 11 deletions modules/storage_delegation/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,18 @@ resource "time_sleep" "wait_for_authorization_policy" {
}

resource "restapi_object" "storage_delegation" {
depends_on = [time_sleep.wait_for_authorization_policy]
path = "//${local.dataplatform_ui}/api/rest/v1/storage-delegations"
read_path = "//${local.dataplatform_ui}/api/rest/v1/storage-delegations/{id}"
read_method = "GET"
create_path = "//${local.dataplatform_ui}/api/rest/v1/storage-delegations"
create_method = "POST"
id_attribute = var.cos_instance_guid
object_id = var.cos_instance_guid
destroy_method = "DELETE"
destroy_path = "//${local.dataplatform_ui}/api/rest/v1/storage-delegations/{id}"
data = <<-EOT
depends_on = [time_sleep.wait_for_authorization_policy]
path = "//${local.dataplatform_ui}/api/rest/v1/storage-delegations"
read_path = "//${local.dataplatform_ui}/api/rest/v1/storage-delegations/{id}"
read_method = "GET"
create_path = "//${local.dataplatform_ui}/api/rest/v1/storage-delegations"
create_method = "POST"
id_attribute = var.cos_instance_guid
object_id = var.cos_instance_guid
ignore_all_server_changes = true
destroy_method = "DELETE"
destroy_path = "//${local.dataplatform_ui}/api/rest/v1/storage-delegations/{id}"
data = <<-EOT
{
"cos_instance_id": "${var.cos_instance_guid}",
"kms_key_crn": "${var.cos_kms_key_crn}",
Expand Down
2 changes: 1 addition & 1 deletion modules/storage_delegation/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
restapi = {
source = "Mastercard/restapi"
version = ">= 1.19.1"
version = ">= 2.0.1, < 3.0.0"
}
ibm = {
source = "IBM-Cloud/ibm"
Expand Down
4 changes: 2 additions & 2 deletions solutions/fully-configurable/version.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ terraform {
required_providers {
ibm = {
source = "IBM-Cloud/ibm"
version = "1.80.4"
version = "1.85.0"
}
restapi = {
source = "Mastercard/restapi"
version = "1.20.0"
version = "2.0.1"
}
time = {
source = "hashicorp/time"
Expand Down