Skip to content

Commit 8668fdb

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 (#42)
* 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 --------- Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Conall Ó Cofaigh <[email protected]>
1 parent c7c9560 commit 8668fdb

File tree

3 files changed

+1
-49
lines changed

3 files changed

+1
-49
lines changed

examples/complete/main.tf

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,7 @@ resource "ibm_is_subnet" "testacc_subnet" {
3131
##############################################################################
3232

3333
module "key_protect_all_inclusive" {
34-
providers = {
35-
restapi = restapi.kp
36-
}
37-
source = "git::https://github.com/terraform-ibm-modules/terraform-ibm-key-protect-all-inclusive.git?ref=v3.1.2"
34+
source = "git::https://github.com/terraform-ibm-modules/terraform-ibm-key-protect-all-inclusive.git?ref=v4.0.0"
3835
resource_group_id = module.resource_group.resource_group_id
3936
# Note: Database instance and Key Protect must be created in the same region when using BYOK
4037
# 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 & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -2,44 +2,3 @@ provider "ibm" {
22
ibmcloud_api_key = var.ibmcloud_api_key
33
region = var.region
44
}
5-
# used by the restapi provider to authenticate the API call based on API key
6-
data "ibm_iam_auth_token" "token_data" {
7-
}
8-
9-
provider "restapi" {
10-
uri = "https:"
11-
alias = "kp"
12-
write_returns_object = false
13-
create_returns_object = false
14-
debug = false # set to true to show detailed logs, but use carefully as it might print sensitive values.
15-
headers = {
16-
Authorization = data.ibm_iam_auth_token.token_data.iam_access_token
17-
Bluemix-Instance = module.key_protect_all_inclusive.key_protect_guid
18-
Content-Type = "application/vnd.ibm.kms.policy+json"
19-
}
20-
}
21-
22-
provider "restapi" {
23-
alias = "sm"
24-
uri = "https:"
25-
write_returns_object = true
26-
debug = false
27-
headers = {
28-
Authorization = data.ibm_iam_auth_token.token_data.iam_access_token
29-
Content-Type = "application/json"
30-
}
31-
}
32-
33-
# RestAPI provider using alternate configuration to be used by SM module
34-
provider "restapi" {
35-
alias = "nocontent"
36-
uri = "https:"
37-
write_returns_object = false
38-
create_returns_object = false
39-
debug = false # set to true to show detailed logs, but use carefully as it might print sensitive values.
40-
headers = {
41-
Accept = "application/json"
42-
Authorization = data.ibm_iam_auth_token.token_data.iam_access_token
43-
Content-Type = "application/json"
44-
}
45-
}

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
}

0 commit comments

Comments
 (0)