-
Notifications
You must be signed in to change notification settings - Fork 4
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
Allow using the provider without pre-defined configuration #5
Comments
This scenario is being discussed here: pulumi/pulumi#2725 |
Hello @lukehoban. It seems the issue is a bit worse right now. Even with defaults set, I get a missing required key error: |
The issue was in our side. We were referencing another stack and using the wrong username attribute: const mysqlProvider = new mysql.Provider('mysql', {
endpoint: rds.apply(r => r.endpoint),
- username: rds.apply(r => r.username),
+ username: rds.apply(r => r.masterUsername),
password: rdsRootDatabasePassword.apply(p => p.toString()),
}); Since the username was I'm closing it again. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In many cases we use cloud providers to create a MySQL server. When using services such as RDS, the
endpoint
,username
andpassword
are created right before the databases are created.If the configuration is not previously set, the following error is thrown:
This is the approach mentioned above:
Maybe defaulting the configuration to
localhost
,root
and empty password as many tools do could be a good approach. WDYT?The text was updated successfully, but these errors were encountered: