Skip to content

Commit b9232f7

Browse files
terraform-ibm-modules-opsrenovate-botocofaigh
authored
chore(deps): update terraform github.com/terraform-ibm-modules/terraform-ibm-key-protect-all-inclusive to v4 (#40)
* chore(deps): update terraform github.com/terraform-ibm-modules/terraform-ibm-key-protect-all-inclusive to v4 * Update main.tf * Update version.tf * Update provider.tf * Update main.tf * Update version.tf * Update provider.tf --------- Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com> Co-authored-by: Conall Ó Cofaigh <ocofaigh@ie.ibm.com>
1 parent 80d3101 commit b9232f7

File tree

6 files changed

+2
-75
lines changed

6 files changed

+2
-75
lines changed

examples/complete/main.tf

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ module "resource_group" {
1414
##############################################################################
1515

1616
module "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

examples/complete/provider.tf

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff 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-
}

examples/complete/version.tf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

examples/fscloud/main.tf

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ module "resource_group" {
1414
##############################################################################
1515

1616
module "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

examples/fscloud/provider.tf

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff 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-
}

examples/fscloud/version.tf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)