diff --git a/terraform/node_resource_abstract.go b/terraform/node_resource_abstract.go index ae3cb3fe5..2f3592bcc 100644 --- a/terraform/node_resource_abstract.go +++ b/terraform/node_resource_abstract.go @@ -342,7 +342,7 @@ func (n *NodeAbstractResourceInstance) ProvidedBy() (addrs.AbsProviderConfig, bo Guess: // Use our type and containing module path to guess a provider configuration address - return addrs.NewDefaultProviderConfig(n.Addr.Resource.Type).Absolute(n.Addr.Module), false + return n.Addr.Resource.DefaultProviderConfig().Absolute(n.Path()), false } // GraphNodeProvisionerConsumer