pulumi / pulumi-random

A Pulumi provider that safely enables randomness for resources

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New release v4.13.3 errors out with RandomString.number

t0yv0 opened this issue · comments

What happened?

error: random:index/randomString:RandomString resource 'roleName' has a problem: Attribute Deprecated. NOTE: This is deprecated, use numeric instead.. Examine values at 'roleName.number'.

Example

const roleName = new random.RandomString("roleName", {
    length: 10,
    upper: false,
    number: false,
    special: false,
}).result;

CLI output:

  @ previewing update....[resource plugin random-4.13.3] installing
  
  + pulumi:pulumi:Stack: (create)
      [urn=urn:pulumi:p-it-runner-keyvault-1e48d007::keyvault::pulumi:pulumi:Stack::keyvault-p-it-runner-keyvault-1e48d007]
  error: random:index/randomString:RandomString resource 'roleName' has a problem: Attribute Deprecated. **NOTE**: This is deprecated, use `numeric` instead.. Examine values at 'roleName.number'.
  Resources:
      + 1 to create

Output of pulumi about

TBD

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).

Looks like in Registry at least we used to mark https://www.pulumi.com/registry/packages/random/api-docs/randomstring/#number_python as deprecated. Still something is not right that this fails hard instead of warning if it's still a deprecated and not a removed field.

The workaround is to move to "numeric" as suggested in the deprecation warning.

If you are affected by this issue, please upgrade to v4.13.4 which really is identical to v4.13.2 effectively reverting the change. We're working to address the underlying issue in pulumi-terraform-bridge and will release a new version once this is resolved.