Giter Site home page Giter Site logo

Comments (10)

skolsuper avatar skolsuper commented on August 10, 2024 14

Seems like this was released and works nicely, thanks! Can close this issue now 👍

edit: spoke too soon, I had to manually edit the state to prevent terraform from recreating it on the first apply:

# random_password.secret_key_base must be replaced
-/+ resource "random_password" "secret_key_base" {
      ~ id               = "none" -> (known after apply)
      + length           = 64 # forces replacement
      + lower            = false # forces replacement
      + min_lower        = 0 # forces replacement
      + min_numeric      = 0 # forces replacement
      + min_special      = 0 # forces replacement
      + min_upper        = 0 # forces replacement
      + number           = true # forces replacement
      + override_special = "abcdef" # forces replacement
      ~ result           = (sensitive value)
      + special          = true # forces replacement
      + upper            = false # forces replacement
    }

all values such as length, lower etc were all null in the state after import

from terraform-provider-random.

Sytten avatar Sytten commented on August 10, 2024 3

Can this provider be released so we have access to this feature. Thanks.

from terraform-provider-random.

dekimsey avatar dekimsey commented on August 10, 2024 2

This would be amazing but also for the random_password resource. We need to migrate some uses of random_string to random_password but I'm wary of doing that since it'll regenerate the values.

from terraform-provider-random.

thibault-lepeu avatar thibault-lepeu commented on August 10, 2024 1

I actually this exact problem today, I really can't shutdown my production servers because of this.

terraform import random_string.user XXX
random_string.user: Importing from ID "XXX"...

Error: resource random_string doesn't support import

This would be super welcome 👍

from terraform-provider-random.

dijitali avatar dijitali commented on August 10, 2024

Agreed. A lot of modules in the community make use of the random_string to ensure naming uniqueness. As a result the resources in the modules depending on the random_string must be recreated on state import, which is a pain!

from terraform-provider-random.

crisp2u avatar crisp2u commented on August 10, 2024

It seems there was an attempt: #46 I still think it would be usefull

from terraform-provider-random.

nijave avatar nijave commented on August 10, 2024

You can achieve this by pulling down the state, manually editing, and pushing back up although importing would be ideal

from terraform-provider-random.

jahantech avatar jahantech commented on August 10, 2024

Is this solution acceptable? #100
Any comments will be appreciated.

from terraform-provider-random.

gespinoza22 avatar gespinoza22 commented on August 10, 2024

Concur on support for import on random_string and random random_password

from terraform-provider-random.

github-actions avatar github-actions commented on August 10, 2024

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

from terraform-provider-random.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.