IBM-Cloud / terraform-provider-ibm

https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs
Mozilla Public License 2.0
339 stars 650 forks source link

ibm_project_config apply fail after deploying the config #5233

Open vburckhardt opened 4 months ago

vburckhardt commented 4 months ago

Community Note

Terraform CLI and Terraform IBM Provider Version

tf provider 1.63

Affected Resource(s)

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please share a link to the ZIP file.
resource "ibm_project_config" "kms_setup" {
  definition {
    name = "2a - Security Service - Key Management"
    description = "Configures the key management layer."
    locator_id = "7df1e4ca-d54c-4fd0-82ce-3d13247308cd.45320da9-fb74-459c-8ebf-0fd70d2c0fc5"
    authorizations {
      method = "api_key"
      api_key = var.ibmcloud_api_key
    }
    inputs = {
      region = "eu-gb"
      prefix = var.resource_prefix
      resource_group_name = "stack-service-rg"
    }
  }
  project_id = var.project_id
}

resource "ibm_project_config" "sm_setup" {
  definition {
    name = "2b - Security Service - Secret Manager"
    description = "Configures a secret manager instance."
    locator_id = "7df1e4ca-d54c-4fd0-82ce-3d13247308cd.a7cdf3aa-de8a-4a81-9127-ec9b7f3f2259"
    authorizations {
      method = "api_key"
      api_key = var.ibmcloud_api_key
    }
    inputs = {
      region = "eu-gb"
      prefix = var.resource_prefix
      resource_group_name = "stack-service-rg"
      existing_kms_guid = "ref:/config/2a - Security Service - Key Management/outputs/kms_guid"
    }
  }
  project_id = var.project_id
}

Debug Output

Panic Output

terraform apply
ibm_project_config.sm_setup: Refreshing state... [id=611fe286-3026-4457-b8c8-5356710deffb/4eb411eb-ad02-4dd4-8226-d5b5187e6e2d]
ibm_project_config.kms_setup: Refreshing state... [id=611fe286-3026-4457-b8c8-5356710deffb/3790a03e-40e8-4df5-9b8a-e550b3fc3d63]
ibm_project_config.base_account_setup: Refreshing state... [id=611fe286-3026-4457-b8c8-5356710deffb/a5c573a8-bfd2-43c3-ac7f-6f007098dc4d]

Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform planned the following actions, but then encountered a problem:

  # ibm_project_config.base_account_setup will be updated in-place
  ~ resource "ibm_project_config" "base_account_setup" {
        id                    = "611fe286-3026-4457-b8c8-5356710deffb/a5c573a8-bfd2-43c3-ac7f-6f007098dc4d"
        # (13 unchanged attributes hidden)

      ~ definition {
            name          = "1 - Account Infrastructure Base"
            # (5 unchanged attributes hidden)

          ~ authorizations {
              ~ api_key = (sensitive value)
                # (1 unchanged attribute hidden)
            }
        }
    }

  # ibm_project_config.sm_setup will be updated in-place
  ~ resource "ibm_project_config" "sm_setup" {
        id                    = "611fe286-3026-4457-b8c8-5356710deffb/4eb411eb-ad02-4dd4-8226-d5b5187e6e2d"
        # (12 unchanged attributes hidden)

      ~ definition {
          ~ inputs        = {
              ~ "existing_kms_guid"   = "ref:/2a - Security Service - Key Management/outputs/kms_guid" -> "ref:/config/2a - Security Service - Key Management/outputs/kms_guid"
              + "prefix"              = "watson-stack"
                # (2 unchanged elements hidden)
            }
            name          = "2b - Security Service - Secret Manager"
            # (4 unchanged attributes hidden)

          ~ authorizations {
              ~ api_key = (sensitive value)
                # (1 unchanged attribute hidden)
            }
        }
    }

Plan: 0 to add, 2 to change, 0 to destroy.
β•·
β”‚ Error: GetConfigWithContext failed error unmarshalling projectv1.ProjectConfig: error unmarshalling property 'outputs' as []projectv1.OutputValue: error unmarshalling property 'value': json: cannot unmarshal string into Go value of type map[string]interface {}
β”‚ {
β”‚     "StatusCode": 200,
β”‚     "Headers": {
β”‚         "Cache-Control": [
β”‚             "max-age=0, no-cache, no-store"
β”‚         ],
β”‚         "Content-Security-Policy": [
β”‚             "default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"
β”‚         ],
β”‚         "Content-Type": [
β”‚             "application/json; charset=utf-8"
β”‚         ],
β”‚         "Date": [
β”‚             "Fri, 22 Mar 2024 16:51:11 GMT"
β”‚         ],
β”‚         "Etag": [
β”‚             "W/\"2dc7-r24dLtlZka3ErI8REASS9ZzBdRc\""
β”‚         ],
β”‚         "Expires": [
β”‚             "Fri, 22 Mar 2024 16:51:11 GMT"
β”‚         ],
β”‚         "Pragma": [
β”‚             "no-cache"
β”‚         ],
β”‚         "Ratelimit-Limit": [
β”‚             "200"
β”‚         ],
β”‚         "Ratelimit-Policy": [
β”‚             "200;w=10"
β”‚         ],
β”‚         "Ratelimit-Remaining": [
β”‚             "199"
β”‚         ],
β”‚         "Ratelimit-Reset": [
β”‚             "10"
β”‚         ],
β”‚         "Strict-Transport-Security": [
β”‚             "max-age=31536000; includeSubDomains"
β”‚         ],
β”‚         "Transaction-Id": [
β”‚             "prj-2c4f294b-9962-4d5e-9a76-e9bd2c1954df"
β”‚         ],
β”‚         "Vary": [
β”‚             "Accept-Encoding"
β”‚         ],
β”‚         "X-Content-Type-Options": [
β”‚             "nosniff"
β”‚         ],
β”‚         "X-Envoy-Upstream-Service-Time": [
β”‚             "170"
β”‚         ],
β”‚         "X-Xss-Protection": [
β”‚             "1; mode=block"
β”‚         ]
β”‚     },
β”‚     "Result": {
β”‚         "approved_version": {
β”‚             "definition": {
β”‚                 "locator_id": "7df1e4ca-d54c-4fd0-82ce-3d13247308cd.45320da9-fb74-459c-8ebf-0fd70d2c0fc5"
β”‚             },
β”‚             "state": "deployed",
β”‚             "version": 1,
β”‚             "href": "https://projects.api.cloud.ibm.com/v1/projects/611fe286-3026-4457-b8c8-5356710deffb/configs/3790a03e-40e8-4df5-9b8a-e550b3fc3d63/versions/1"
β”‚         },
β”‚         "created_at": "2024-03-22T16:22:39.955Z",
β”‚         "definition": {
β”‚             "authorizations": {
β”‚                 "api_key": "__REDACTED__",
β”‚                 "method": "api_key"
β”‚             },
β”‚             "labels": [],
β”‚             "compliance_profile": {},
β”‚             "name": "2a - Security Service - Key Management",
β”‚             "locator_id": "7df1e4ca-d54c-4fd0-82ce-3d13247308cd.45320da9-fb74-459c-8ebf-0fd70d2c0fc5",
β”‚             "description": "Configures the key management layer.",
β”‚             "inputs": {
β”‚                 "region": "eu-gb",
β”‚                 "resource_group_name": "stack-service-rg"
β”‚             }
β”‚         },
β”‚         "deployed_version": {
β”‚             "definition": {
β”‚                 "locator_id": "7df1e4ca-d54c-4fd0-82ce-3d13247308cd.45320da9-fb74-459c-8ebf-0fd70d2c0fc5"
β”‚             },
β”‚             "state": "deployed",
β”‚             "version": 1,
β”‚             "href": "https://projects.api.cloud.ibm.com/v1/projects/611fe286-3026-4457-b8c8-5356710deffb/configs/3790a03e-40e8-4df5-9b8a-e550b3fc3d63/versions/1"
β”‚         },
β”‚         "deployment_model": "project_deployed",
β”‚         "href": "https://projects.api.cloud.ibm.com/v1/projects/611fe286-3026-4457-b8c8-5356710deffb/configs/3790a03e-40e8-4df5-9b8a-e550b3fc3d63",
β”‚         "id": "3790a03e-40e8-4df5-9b8a-e550b3fc3d63",
β”‚         "is_draft": false,
β”‚         "last_approved": {
β”‚             "user_id": "IBMid-270000A151",
β”‚             "is_forced": false,
β”‚             "comment": "I totally approve",
β”‚             "at": "2024-03-22T16:38:58.980Z"
β”‚         },
β”‚         "last_deployed": {
β”‚             "job": {
β”‚                 "id": "5a60fe8376cf85264af5dfc043809d00",
β”‚                 "summary": {
β”‚                     "version": "1.0.5",
β”‚                     "log_generated_on": "2024-03-22T16:43:04Z",
β”‚                     "log_duration": 0.019838333129882812,
β”‚                     "providers": [],
β”‚                     "plan_summary": {
β”‚                         "add": 3,
β”‚                         "failed": 0,
β”‚                         "update": 0,
β”‚                         "destroy": 0,
β”‚                         "add_resources": [
β”‚                             "ibm_resource_group.resource_group",
β”‚                             "ibm_kms_instance_policies.key_protect_instance_policies",
β”‚                             "ibm_resource_instance.key_protect_instance"
β”‚                         ],
β”‚                         "failed_resources": [],
β”‚                         "updated_resources": [],
β”‚                         "destroy_resources": []
β”‚                     },
β”‚                     "apply_summary": {
β”‚                         "success": 3,
β”‚                         "failed": 0,
β”‚                         "success_resources": [
β”‚                             "ibm_resource_group.resource_group 0",
β”‚                             "module.key_protect 0].ibm_kms_instance_policies.key_protect_instance_policies",
β”‚                             "module.key_protect 0].ibm_resource_instance.key_protect_instance"
β”‚                         ],
β”‚                         "failed_resources": []
β”‚                     },
β”‚                     "destroy_summary": {},
β”‚                     "message_summary": {
β”‚                         "info": 0,
β”‚                         "debug": 0,
β”‚                         "error": 0
β”‚                     },
β”‚                     "plan_messages": {
β”‚                         "error_messages": [],
β”‚                         "success_messages": [
β”‚                             "module.resource_group.ibm_resource_group.resource_group[0] will be created",
β”‚                             "module.kms.module.key_protect[0].ibm_kms_instance_policies.key_protect_instance_policies will be created",
β”‚                             "module.kms.module.key_protect[0].ibm_resource_instance.key_protect_instance will be created"
β”‚                         ],
β”‚                         "update_messages": [],
β”‚                         "destroy_messages": []
β”‚                     },
β”‚                     "apply_messages": {
β”‚                         "error_messages": [],
β”‚                         "success_messages": [
β”‚                             {
β”‚                                 "resource_type": "ibm_resource_group.resource_group 0",
β”‚                                 "time-taken": "2s",
β”‚                                 "id": "958f8b8071e1485baf351701c9c86123"
β”‚                             },
β”‚                             {
β”‚                                 "resource_type": "module.key_protect 0].ibm_resource_instance.key_protect_instance",
β”‚                                 "time-taken": "14s",
β”‚                                 "id": "crn"
β”‚                             },
β”‚                             {
β”‚                                 "resource_type": "module.key_protect 0].ibm_kms_instance_policies.key_protect_instance_policies",
β”‚                                 "time-taken": "2s",
β”‚                                 "id": "crn"
β”‚                             }
β”‚                         ]
β”‚                     },
β”‚                     "destroy_messages": {},
β”‚                     "action_to_resolve_issue": [],
β”‚                     "user_id": "IBMid-270000A151",
β”‚                     "job_id": "5a60fe8376cf85264af5dfc043809d00"
β”‚                 }
β”‚             },
β”‚             "href": "https://projects.api.cloud.ibm.com/v1/projects/611fe286-3026-4457-b8c8-5356710deffb/configs/3790a03e-40e8-4df5-9b8a-e550b3fc3d63/versions/1/last_deployed",
β”‚             "result": "succeeded"
β”‚         },
β”‚         "last_saved_at": "2024-03-22T16:28:44.767Z",
β”‚         "last_validated": {
β”‚             "cost_estimate": {
β”‚                 "version": "0.2",
β”‚                 "metadata": {
β”‚                     "infracostCommand": "breakdown",
β”‚                     "vcsBranch": "",
β”‚                     "vcsCommitSha": "",
β”‚                     "vcsCommitAuthorName": "",
β”‚                     "vcsCommitAuthorEmail": "",
β”‚                     "vcsCommitTimestamp": "0001-01-01T00:00:00Z",
β”‚                     "vcsCommitMessage": ""
β”‚                 },
β”‚                 "currency": "USD",
β”‚                 "projects": [
β”‚                     {
β”‚                         "name": "",
β”‚                         "metadata": {
β”‚                             "path": "tfplan.json",
β”‚                             "type": "terraform_plan_json"
β”‚                         },
β”‚                         "pastBreakdown": {
β”‚                             "resources": [],
β”‚                             "totalHourlyCost": "0",
β”‚                             "totalMonthlyCost": "0"
β”‚                         },
β”‚                         "breakdown": {
β”‚                             "resources": [
β”‚                                 {
β”‚                                     "name": "module.kms.module.key_protect[0].ibm_resource_instance.key_protect_instance",
β”‚                                     "metadata": {
β”‚                                         "catalog": {
β”‚                                             "configuration": {
β”‚                                                 "location": "eu-gb",
β”‚                                                 "plan": "tiered-pricing",
β”‚                                                 "service": "kms"
β”‚                                             },
β”‚                                             "serviceId": "ee41347f-b18e-4ca6-bf80-b5467c63f9a6"
β”‚                                         }
β”‚                                     },
β”‚                                     "hourlyCost": "0.00737226027397265582",
β”‚                                     "monthlyCost": "5.38175",
β”‚                                     "costComponents": [
β”‚                                         {
β”‚                                             "name": "Key versions free allowance (first 5 Key Versions)",
β”‚                                             "unit": "Key Versions",
β”‚                                             "hourlyQuantity": "0.0068493150684932",
β”‚                                             "monthlyQuantity": "5",
β”‚                                             "price": "0",
β”‚                                             "hourlyCost": "0",
β”‚                                             "monthlyCost": "0"
β”‚                                         },
β”‚                                         {
β”‚                                             "name": "Key versions",
β”‚                                             "unit": "Key Versions",
β”‚                                             "hourlyQuantity": "0.0068493150684932",
β”‚                                             "monthlyQuantity": "5",
β”‚                                             "price": "1.07635",
β”‚                                             "hourlyCost": "0.00737226027397265582",
β”‚                                             "monthlyCost": "5.38175"
β”‚                                         }
β”‚                                     ]
β”‚                                 }
β”‚                             ],
β”‚                             "totalHourlyCost": "0.00737226027397265582",
β”‚                             "totalMonthlyCost": "5.38175"
β”‚                         },
β”‚                         "diff": {
β”‚                             "resources": [
β”‚                                 {
β”‚                                     "name": "module.kms.module.key_protect[0].ibm_resource_instance.key_protect_instance",
β”‚                                     "metadata": {},
β”‚                                     "hourlyCost": "0.00737226027397265582",
β”‚                                     "monthlyCost": "5.38175",
β”‚                                     "costComponents": [
β”‚                                         {
β”‚                                             "name": "Key versions free allowance (first 5 Key Versions)",
β”‚                                             "unit": "Key Versions",
β”‚                                             "hourlyQuantity": "0.0068493150684932",
β”‚                                             "monthlyQuantity": "5",
β”‚                                             "price": "0",
β”‚                                             "hourlyCost": "0",
β”‚                                             "monthlyCost": "0"
β”‚                                         },
β”‚                                         {
β”‚                                             "name": "Key versions",
β”‚                                             "unit": "Key Versions",
β”‚                                             "hourlyQuantity": "0.0068493150684932",
β”‚                                             "monthlyQuantity": "5",
β”‚                                             "price": "1.07635",
β”‚                                             "hourlyCost": "0.00737226027397265582",
β”‚                                             "monthlyCost": "5.38175"
β”‚                                         }
β”‚                                     ]
β”‚                                 }
β”‚                             ],
β”‚                             "totalHourlyCost": "0.00737226027397265582",
β”‚                             "totalMonthlyCost": "5.38175"
β”‚                         },
β”‚                         "summary": {
β”‚                             "totalDetectedResources": 3,
β”‚                             "totalSupportedResources": 1,
β”‚                             "totalUnsupportedResources": 1,
β”‚                             "totalUsageBasedResources": 1,
β”‚                             "totalNoPriceResources": 1,
β”‚                             "unsupportedResourceCounts": {
β”‚                                 "ibm_kms_instance_policies": 1
β”‚                             },
β”‚                             "noPriceResourceCounts": {
β”‚                                 "ibm_resource_group": 1
β”‚                             }
β”‚                         }
β”‚                     }
β”‚                 ],
β”‚                 "totalHourlyCost": "0.00737226027397265582",
β”‚                 "totalMonthlyCost": "5.38175",
β”‚                 "pastTotalHourlyCost": "0",
β”‚                 "pastTotalMonthlyCost": "0",
β”‚                 "diffTotalHourlyCost": "0.00737226027397265582",
β”‚                 "diffTotalMonthlyCost": "5.38175",
β”‚                 "timeGenerated": "2024-03-22T16:37:59Z",
β”‚                 "summary": {
β”‚                     "totalDetectedResources": 3,
β”‚                     "totalSupportedResources": 1,
β”‚                     "totalUnsupportedResources": 1,
β”‚                     "totalUsageBasedResources": 1,
β”‚                     "totalNoPriceResources": 1,
β”‚                     "unsupportedResourceCounts": {
β”‚                         "ibm_kms_instance_policies": 1
β”‚                     },
β”‚                     "noPriceResourceCounts": {
β”‚                         "ibm_resource_group": 1
β”‚                     }
β”‚                 },
β”‚                 "user_id": "IBMid-270000A151",
β”‚                 "job_id": "113dadcd0083c61f444db3dcb5ae4ade"
β”‚             },
β”‚             "cra_logs": {
β”‚                 "cra_version": "2.1.5",
β”‚                 "schema_version": "V2",
β”‚                 "timestamp": "2024-03-22T16:38:23Z",
β”‚                 "terraform_dir": "tf-plan.json",
β”‚                 "status": "passed",
β”‚                 "summary": {
β”‚                     "total": "1",
β”‚                     "passed": "1",
β”‚                     "failed": "0",
β”‚                     "skipped": "0",
β”‚                     "unsupported": "0",
β”‚                     "profile": "scc_rules.json"
β”‚                 },
β”‚                 "config": "",
β”‚                 "user_id": "IBMid-270000A151",
β”‚                 "job_id": "113dadcd0083c61f444db3dcb5ae4ade",
β”‚                 "failed_list": []
β”‚             },
β”‚             "job": {
β”‚                 "id": "113dadcd0083c61f444db3dcb5ae4ade",
β”‚                 "summary": {
β”‚                     "version": "1.0.5",
β”‚                     "log_generated_on": "2024-03-22T16:37:49Z",
β”‚                     "log_duration": 0.006215572357177734,
β”‚                     "providers": [],
β”‚                     "plan_summary": {
β”‚                         "add": 3,
β”‚                         "failed": 0,
β”‚                         "update": 0,
β”‚                         "destroy": 0,
β”‚                         "add_resources": [
β”‚                             "ibm_resource_group.resource_group",
β”‚                             "ibm_kms_instance_policies.key_protect_instance_policies",
β”‚                             "ibm_resource_instance.key_protect_instance"
β”‚                         ],
β”‚                         "failed_resources": [],
β”‚                         "updated_resources": [],
β”‚                         "destroy_resources": []
β”‚                     },
β”‚                     "apply_summary": {},
β”‚                     "destroy_summary": {},
β”‚                     "message_summary": {
β”‚                         "info": 0,
β”‚                         "debug": 0,
β”‚                         "error": 0
β”‚                     },
β”‚                     "plan_messages": {
β”‚                         "error_messages": [],
β”‚                         "success_messages": [
β”‚                             "module.resource_group.ibm_resource_group.resource_group[0] will be created",
β”‚                             "module.kms.module.key_protect[0].ibm_kms_instance_policies.key_protect_instance_policies will be created",
β”‚                             "module.kms.module.key_protect[0].ibm_resource_instance.key_protect_instance will be created"
β”‚                         ],
β”‚                         "update_messages": [],
β”‚                         "destroy_messages": []
β”‚                     },
β”‚                     "apply_messages": {},
β”‚                     "destroy_messages": {},
β”‚                     "action_to_resolve_issue": [],
β”‚                     "user_id": "IBMid-270000A151",
β”‚                     "job_id": "113dadcd0083c61f444db3dcb5ae4ade"
β”‚                 }
β”‚             },
β”‚             "href": "https://projects.api.cloud.ibm.com/v1/projects/611fe286-3026-4457-b8c8-5356710deffb/configs/3790a03e-40e8-4df5-9b8a-e550b3fc3d63/versions/1/last_validated",
β”‚             "result": "succeeded"
β”‚         },
β”‚         "modified_at": "2024-03-22T16:39:06.182Z",
β”‚         "needs_attention_state": [],
β”‚         "outputs": [
β”‚             {
β”‚                 "name": "kp_public_endpoint",
β”‚                 "value": "https://eu-gb.kms.cloud.ibm.com"
β”‚             },
β”‚             {
β”‚                 "name": "key_protect_instance_policies",
β”‚                 "value": {
β”‚                     "dual_auth_delete": [],
β”‚                     "id": "crn:v1:bluemix:public:kms:eu-gb:a/7aa6f7b185f2e3170fac9919aa1769ee:5d6d03ed-d11e-4d2e-b569-6aee1be226af::",
β”‚                     "instance_id": "5d6d03ed-d11e-4d2e-b569-6aee1be226af",
β”‚                     "key_create_import_access": [],
β”‚                     "metrics": [],
β”‚                     "rotation": []
β”‚                 }
β”‚             },
β”‚             {
β”‚                 "name": "key_rings",
β”‚                 "value": {}
β”‚             },
β”‚             {
β”‚                 "name": "keys",
β”‚                 "value": {}
β”‚             },
β”‚             {
β”‚                 "name": "key_protect_name",
β”‚                 "value": "base-security-services-kms"
β”‚             },
β”‚             {
β”‚                 "name": "resource_group_name",
β”‚                 "value": "stack-service-rg"
β”‚             },
β”‚             {
β”‚                 "name": "kp_private_endpoint",
β”‚                 "value": "https://private.eu-gb.kms.cloud.ibm.com"
β”‚             },
β”‚             {
β”‚                 "name": "resource_group_id",
β”‚                 "value": "958f8b8071e1485baf351701c9c86123"
β”‚             },
β”‚             {
β”‚                 "name": "kms_guid",
β”‚                 "value": "5d6d03ed-d11e-4d2e-b569-6aee1be226af"
β”‚             }
β”‚         ],
β”‚         "project": {
β”‚             "id": "611fe286-3026-4457-b8c8-5356710deffb",
β”‚             "crn": "crn:v1:bluemix:public:project:eu-gb:a/7aa6f7b185f2e3170fac9919aa1769ee:611fe286-3026-4457-b8c8-5356710deffb::",
β”‚             "definition": {
β”‚                 "name": "watson-stack"
β”‚             },
β”‚             "href": "https://projects.api.cloud.ibm.com/v1/projects/611fe286-3026-4457-b8c8-5356710deffb"
β”‚         },
β”‚         "schematics": {
β”‚             "catalog_id": "7df1e4ca-d54c-4fd0-82ce-3d13247308cd",
β”‚             "offering_id": "2cad4789-fa90-4886-9c9e-857081c273ee",
β”‚             "offering_kind_id": "24076f71-c72d-46ed-ab8d-495ba62e9127",
β”‚             "version_id": "45320da9-fb74-459c-8ebf-0fd70d2c0fc5",
β”‚             "offering_version": "v4.8.5",
β”‚             "offering_fulfilment_kind": "terraform",
β”‚             "offering_kind": "terraform",
β”‚             "offering_target_kind": "terraform",
β”‚             "offering_version_working_directory": "terraform-ibm-kms-all-inclusive-4.8.5/solutions/standard",
β”‚             "discovered_version": "\u003e= 1.3.0, \u003c1.7.0",
β”‚             "input_metadata": {
β”‚                 "region": {
β”‚                     "type": "string"
β”‚                 },
β”‚                 "resource_tags": {
β”‚                     "type": "list(string)"
β”‚                 },
β”‚                 "key_protect_instance_name": {
β”‚                     "type": "string"
β”‚                 },
β”‚                 "resource_group_name": {
β”‚                     "type": "string"
β”‚                 },
β”‚                 "access_tags": {
β”‚                     "type": "list(string)"
β”‚                 },
β”‚                 "keys": {
β”‚                     "type": "list(object({\n    key_ring_name         = string\n    existing_key_ring     = optional(bool, false)\n    force_delete_key_ring = optional(bool, true)\n    keys = list(object({\n      key_name                 = string\n      standard_key             = optional(bool, false)\n      rotation_interval_month  = optional(number, 1)\n      dual_auth_delete_enabled = optional(bool, false)\n      force_delete             = optional(bool, true)\n    }))\n  }))"
β”‚                 },
β”‚                 "existing_resource_group": {
β”‚                     "type": "bool"
β”‚                 },
β”‚                 "ibmcloud_api_key": {
β”‚                     "type": "string"
β”‚                 },
β”‚                 "existing_kms_guid": {
β”‚                     "type": "string"
β”‚                 },
β”‚                 "service_endpoints": {
β”‚                     "type": "string"
β”‚                 }
β”‚             },
β”‚             "workspace_crn": "crn:v1:bluemix:public:schematics:eu-de:a/7aa6f7b185f2e3170fac9919aa1769ee:8410cdea-c458-488c-9aab-554aad2c6ec5:workspace:eu-gb.workspace.projects-service.2f768174",
β”‚             "workspace_id": "eu-gb.workspace.projects-service.2f768174",
β”‚             "cart_order_id": "eu-gb.cartOrder.3790a03e-40e8-4df5-9b8a-e550b3fc3d63-611fe286-3026-4457-b8c8-5356710deffb.e1a98a5e",
β”‚             "cart_item_name": "2a - Security Service - Key Management"
β”‚         },
β”‚         "state": "deployed",
β”‚         "target_account": "7aa6f7b185f2e3170fac9919aa1769ee",
β”‚         "timeline": [
β”‚             {
β”‚                 "action": "DRAFT_CREATED",
β”‚                 "user_id": "IBMid-270000A151",
β”‚                 "timestamp": "2024-03-22T16:22:39.955Z"
β”‚             },
β”‚             {
β”‚                 "action": "VALIDATE_TRIGGERED",
β”‚                 "user_id": "IBMid-270000A151",
β”‚                 "timestamp": "2024-03-22T16:29:34.753Z",
β”‚                 "pipeline": {
β”‚                     "operation": "validate-config-listener",
β”‚                     "isTriggered": true,
β”‚                     "pipeline_name": "projects-pipeline-83",
β”‚                     "pipeline_id": "00eb02a6-a537-432a-b748-d2739d5accdf",
β”‚                     "run_id": "8c1f5417-0f0d-4e25-aae7-ad73db1b6bfc",
β”‚                     "status": "pending"
β”‚                 }
β”‚             },
β”‚             {
β”‚                 "action": "APPROVED",
β”‚                 "user_id": "IBMid-270000A151",
β”‚                 "timestamp": "2024-03-22T16:38:58.980Z",
β”‚                 "comment": "I totally approve"
β”‚             },
β”‚             {
β”‚                 "action": "DEPLOY_TRIGGERED",
β”‚                 "user_id": "IBMid-270000A151",
β”‚                 "timestamp": "2024-03-22T16:39:06.182Z",
β”‚                 "pipeline": {
β”‚                     "operation": "deploy-config-listener",
β”‚                     "isTriggered": true,
β”‚                     "pipeline_name": "projects-pipeline-49",
β”‚                     "pipeline_id": "f4e9f4bb-ce61-40de-9935-3a065f79758e",
β”‚                     "run_id": "5bb9dcc0-020f-4f87-be15-ca448f495b71",
β”‚                     "status": "pending"
β”‚                 }
β”‚             },
β”‚             {
β”‚                 "action": "DEPLOYED",
β”‚                 "user_id": "5bb9dcc0-020f-4f87-be15-ca448f495b71",
β”‚                 "timestamp": "2024-03-22T16:43:19.616Z"
β”‚             }
β”‚         ],
β”‚         "update_available": false,
β”‚         "updated_at": "2024-03-22T16:43:21.281Z",
β”‚         "version": 1
β”‚     },
β”‚     "RawResult": null
β”‚ }
β”‚ 
β”‚ 
β”‚   with ibm_project_config.kms_setup,
β”‚   on main.tf line 86, in resource "ibm_project_config" "kms_setup":
β”‚   86: resource "ibm_project_config" "kms_setup" {

Expected Behavior

Actual Behavior

Steps to Reproduce

  1. terraform apply

Important Factoids

References

riccardo-angelilli commented 3 months ago

should be fixed with tf provider 1.65.0-beta0