Open aureq opened 1 year ago
On the surface this would appear to be reflecting the underlying API create behaviour based on when it returns.
What we might have to do here is to create a custom resource option to enable some custom polling behaviour to wait for the running
state.
There is the CacheFunctions::getRedis function, which also cannot be used to retrieve the accesskeys.
What happened?
I'm running the code below to create a redis cache using the Azure Native provider.
However, I'm unable to create a stack out from the
access_keys
as it appears it's not set, even when creating the cache. This is a problem because keys are needed in order to access redis. And per the documentation, theaccess_keys
property is only set during a redis create or update operation.Also, using a
refresh
doesn't yield any changes.I've also noticed as part of debugging this issue that it takes a lot of time to create a simple and small redis cache. I did set a timeout to 60m, but Pulumi returns successfully after 13m 59s, though the redis cache is still showing as
creating
in the Azure portal.Steps to reproduce
creating
state (though the deployment has correctly completed)redis_access_key
Expected Behavior
On a redis cache creation, the pulumi command completes when the cache becomes available (
running
state in the Azure portal) and the resource propertyaccess_keys
is usable.Actual Behavior
access_keys
is emtpyrunning
stateOutput of
pulumi about
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).