Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Child modules does not support provider #39

Open
safoorsafdar opened this issue Jun 14, 2023 · 0 comments
Open

Child modules does not support provider #39

safoorsafdar opened this issue Jun 14, 2023 · 0 comments

Comments

@safoorsafdar
Copy link

I am using iam-dynamic-group child module, and I am getting below mentioned error. Seems like resources need to update to support provider. IAM resources can only provision in home region.

I have same issue before with compartment, and due to the same reason I had to re implement compartment with following snippet.

resource "oci_identity_compartment" "compartment" {
  #Required
  compartment_id = var.compartment_root_id
  description    = var.compartment_description
  name           = var.compartment_name
  enable_delete  = true

  provider = oci.home
}

Below is the error I am facing...

╷
│ Error: Reference to undefined provider
│
│   on iam.tf line 28, in module "iam_autoscaler":
│   28:     oci.home = oci.home
│
│ The child module does not declare any provider requirement with the local
│ name "oci.home".
│
│ If you also control the child module, you can add a required_providers
│ entry named "oci.home" with the source address "oracle/oci" to accept this
│ provider configuration.

I can contribute to the module to support the provider, if contributions is open.

Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant