File tree Expand file tree Collapse file tree 6 files changed +2
-75
lines changed
Expand file tree Collapse file tree 6 files changed +2
-75
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,7 @@ module "resource_group" {
1414# #############################################################################
1515
1616module "key_protect_all_inclusive" {
17- providers = {
18- restapi = restapi.kp
19- }
20- source = " git::https://github.com/terraform-ibm-modules/terraform-ibm-key-protect-all-inclusive.git?ref=v3.1.2"
17+ source = " git::https://github.com/terraform-ibm-modules/terraform-ibm-key-protect-all-inclusive.git?ref=v4.0.0"
2118 resource_group_id = module. resource_group . resource_group_id
2219 # Note: Database instance and Key Protect must be created in the same region when using BYOK
2320 # See https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-key-protect&interface=ui#key-byok
Original file line number Diff line number Diff line change @@ -2,45 +2,3 @@ provider "ibm" {
22 ibmcloud_api_key = var. ibmcloud_api_key
33 region = var. region
44}
5-
6- # used by the restapi provider to authenticate the API call based on API key
7- data "ibm_iam_auth_token" "token_data" {
8- }
9-
10- provider "restapi" {
11- uri = " https:"
12- alias = " kp"
13- write_returns_object = false
14- create_returns_object = false
15- debug = false # set to true to show detailed logs, but use carefully as it might print sensitive values.
16- headers = {
17- Authorization = data.ibm_iam_auth_token.token_data.iam_access_token
18- Bluemix-Instance = module.key_protect_all_inclusive.key_protect_guid
19- Content-Type = " application/vnd.ibm.kms.policy+json"
20- }
21- }
22-
23- provider "restapi" {
24- alias = " sm"
25- uri = " https:"
26- write_returns_object = true
27- debug = false
28- headers = {
29- Authorization = data.ibm_iam_auth_token.token_data.iam_access_token
30- Content-Type = " application/json"
31- }
32- }
33-
34- # RestAPI provider using alternate configuration to be used by SM module
35- provider "restapi" {
36- alias = " nocontent"
37- uri = " https:"
38- write_returns_object = false
39- create_returns_object = false
40- debug = false # set to true to show detailed logs, but use carefully as it might print sensitive values.
41- headers = {
42- Accept = " application/json"
43- Authorization = data.ibm_iam_auth_token.token_data.iam_access_token
44- Content-Type = " application/json"
45- }
46- }
Original file line number Diff line number Diff line change @@ -6,9 +6,5 @@ terraform {
66 source = " IBM-Cloud/ibm"
77 version = " 1.49.0"
88 }
9- restapi = {
10- source = " Mastercard/restapi"
11- version = " >=1.18.0"
12- }
139 }
1410}
Original file line number Diff line number Diff line change @@ -14,10 +14,7 @@ module "resource_group" {
1414# #############################################################################
1515
1616module "key_protect_all_inclusive" {
17- providers = {
18- restapi = restapi.kp
19- }
20- source = " git::https://github.com/terraform-ibm-modules/terraform-ibm-key-protect-all-inclusive.git?ref=v3.1.1"
17+ source = " git::https://github.com/terraform-ibm-modules/terraform-ibm-key-protect-all-inclusive.git?ref=v4.0.0"
2118 resource_group_id = module. resource_group . resource_group_id
2219 # Note: Database instance and Key Protect must be created in the same region when using BYOK
2320 # See https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-key-protect&interface=ui#key-byok
Original file line number Diff line number Diff line change @@ -2,20 +2,3 @@ provider "ibm" {
22 ibmcloud_api_key = var. ibmcloud_api_key
33 region = var. region
44}
5-
6- # used by the restapi provider to authenticate the API call based on API key
7- data "ibm_iam_auth_token" "token_data" {
8- }
9-
10- provider "restapi" {
11- uri = " https:"
12- alias = " kp"
13- write_returns_object = false
14- create_returns_object = false
15- debug = false # set to true to show detailed logs, but use carefully as it might print sensitive values.
16- headers = {
17- Authorization = data.ibm_iam_auth_token.token_data.iam_access_token
18- Bluemix-Instance = module.key_protect_all_inclusive.key_protect_guid
19- Content-Type = " application/vnd.ibm.kms.policy+json"
20- }
21- }
Original file line number Diff line number Diff line change @@ -6,9 +6,5 @@ terraform {
66 source = " IBM-Cloud/ibm"
77 version = " 1.49.0"
88 }
9- restapi = {
10- source = " Mastercard/restapi"
11- version = " >=1.18.0"
12- }
139 }
1410}
You can’t perform that action at this time.
0 commit comments