-
Notifications
You must be signed in to change notification settings - Fork 1
Description
What happened?
when running the command pulumi package add terraform-module oracle-terraform-modules/oke/oci oke
I get the error
error:
Error: Missing required provider configuration
on pulumi.tf.json line 3, in module:
3: "mymod": {
The child module requires an additional configuration for provider
oracle/oci, with the local name "oci.home".
Refer to the module's documentation to understand the intended purpose of
this additional provider configuration, and then add an entry for oci.home in
the "providers" meta-argument in the module block to choose which provider
configuration the module should use for that purpose.
error: failed to get schema: parameterize: rpc error: code = Unknown desc = error while inferring module schema for 'oracle-terraform-modules/oke/oci' version 5.3.1: resolve module sources: init failure (Terraform CLI): error running init (Terraform CLI): exit status 1
This error occurred in a Pulumi OCI project with @pulumi/oci installed and all TF_VAR variables exported, but it is also reproducible in a new blank project.
Example
create a new directory mkdir bugpulumi
cd bugpulumi
pulumi new typescript
pulumi package add terraform-module oracle-terraform-modules/oke/oci oke
You should get the error
Output of pulumi about
CLI
Version 3.181.0
Go Version go1.24.4
Go Compiler gc
Plugins
KIND NAME VERSION
language nodejs 3.181.0
Host
OS darwin
Version 15.5
Arch arm64
This project is written in nodejs: executable='/opt/homebrew/bin/node' version='v24.3.0'
Current Stack:/bugpulumi/dev
Found no resources associated with dev
Found no pending operations associated with dev
Backend
Name pulumi.com
URL https://app.pulumi.com/MaazDev
Token type personal
Dependencies:
NAME VERSION
@pulumi/pulumi 3.181.0
@types/node 18.19.118
typescript 5.8.3
Pulumi locates its logs in /var/folders/qv/sy07p8ln3zj89fdc_dtjh5240000gn/T/ by default
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).