Code Monkey home page Code Monkey logo

Comments (4)

loafoe avatar loafoe commented on May 28, 2024 1

Terraform automatically took care of these vanishing users before, but yes, now we will have to modify the logic to re-trigger. There is actually already some re-trigger logic in there which should als be revisited due to the new behaviour. I'll do a first scan of the code and report back possible solutions.

from terraform-provider-hsdp.

loafoe avatar loafoe commented on May 28, 2024 1

Instead of modifying the hsdp_iam_user resource the idea in #131 is to define a new data source which allows us to find all unactivated users. We then use this list to dynamically generate hsdp_iam_activation_email resources which represent the state of the user activation. Once a user has activated, the resource is automatically destroyed on the next run as the account will no longer show up in the data source.

Terraform simply needs to run every couple of hours, depending on the resend_every setting

This is a generic mechanism as users accounts don't even need to be managed by Terraform perse.
As long as they match the filter criteria they will become eligible for email activation emails (and resends).

from terraform-provider-hsdp.

akodhawan avatar akodhawan commented on May 28, 2024 1

Looks like an even better idea. This way this can also be used outside user creation in case need be, and the can help a lot of existing use case where terraform was not used.

from terraform-provider-hsdp.

loafoe avatar loafoe commented on May 28, 2024 1

Implemented in v0.23.1

from terraform-provider-hsdp.

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.