-
Notifications
You must be signed in to change notification settings - Fork 14
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
Provider configuration Error #456
Comments
hi @1Four1Two - I cannot reproduce this behavior without more context. Can you share a code snippet? |
@guineveresaenger private static Provider createProvider(string name, Output<string> address, Output<string> username, Output<string> password,
Output<string>? host, Resource? resource)
{
var auths = getRegistryAuthArgsList(address, username, password);
var providerArgs = getProviderArgs(auths, host);
if (resource == null) return new Provider(name, providerArgs);
var resourceList = CustomResourceOption.CreateResourceList();
resourceList.Add(resource);
return new Provider(name, providerArgs, new CustomResourceOptions { DependsOn = resourceList });
}
private static List<ProviderRegistryAuthArgs> getRegistryAuthArgsList(Output<string> address, Output<string> username, Output<string> password)
{
var providerRegistryAuthArgs = getProviderRegistryAuthArgs(address, username, password);
return new List<ProviderRegistryAuthArgs>
{
providerRegistryAuthArgs,
};
}
private static ProviderRegistryAuthArgs getProviderRegistryAuthArgs(Output<string> address, Output<string> username, Output<string> password)
{
return new ProviderRegistryAuthArgs
{
Address = address,
Username = username,
Password = password
};
}
private static ProviderArgs getProviderArgs(List<ProviderRegistryAuthArgs> auths, Output<string>? host)
{
return new ProviderArgs
{
RegistryAuth = auths,
Host = host!,
};
} Then I attach it to the Custom resource like this public void CreateProviderResourceOptions()
{
ProviderCustomResourceOptions = new CustomResourceOptions
{ DependsOn = Provider, Provider = Provider, Parent = Provider };
} Then add it to the resource I am creating var network = Network.Get("default", networkId, options: ProviderCustomResourceOptions); |
Hi @1Four1Two - can you verify that you are on the latest version of pulumi/pulumi? |
Pulumi 3.50.0 If I go above thee versions I get the problem |
Thank you! If not, it looks like this is a bug in pulumi/pulumi-terraform-bridge. We have pulumi/pulumi-terraform-bridge#651 open as well to help surface the key names for missing config values as well. |
it has docker in the name of the project. Would that be a problem? |
What happened?
After upgrading to 3.6.1 I get the following error. There have been no code changes apart from the version upgrade
Rolling back to 3.6.0 fixes the error
Steps to reproduce
Create a provider and add it to a resource ie an Image
Expected Behavior
to be able to create a provider and attach it to a resaourceresource
Actual Behavior
Output of
pulumi about
No response
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).
The text was updated successfully, but these errors were encountered: