Coder Social home page Coder Social logo

Comments (13)

Nowaker avatar Nowaker commented on July 17, 2024 4

It'd be good to provision standard and/or admin accounts. Great for automated employee onboarding/offboarding.

from terraform-provider-datadog.

masci avatar masci commented on July 17, 2024 4

@Eightyplus I've a working branch but the change will be breaking so I'm just waiting for the right moment to draft a 2.0. I can submit a PR with my changes as soon as we fix #117 that for now has the highest priority.

from terraform-provider-datadog.

masci avatar masci commented on July 17, 2024 1

Just to confirm I'm going to schedule some work to implement this, will update the issue accordingly.

from terraform-provider-datadog.

Eightyplus avatar Eightyplus commented on July 17, 2024 1

What is the status of this task?

from terraform-provider-datadog.

CumpsD avatar CumpsD commented on July 17, 2024

Would love this as well, then I dont have to login after running TF to downgrade them

from terraform-provider-datadog.

masci avatar masci commented on July 17, 2024

Currently working on this, the hard part is keeping backward compatibility with the existing is_admin argument.

from terraform-provider-datadog.

Nowaker avatar Nowaker commented on July 17, 2024

@masci I wouldn't worry about it. Module versions can be easily locked. Personally, I always lock versions of all dependencies to avoid future compatibility problems - is it in a real programming language like Ruby, o "just" Terraform.

from terraform-provider-datadog.

masci avatar masci commented on July 17, 2024

@Nowaker thanks for the advice. I'd have loved to deprecate is_admin in the upcoming minor and get rid of it on a subsequent release but if this becomes too hacky I'll just remove it.

from terraform-provider-datadog.

masci avatar masci commented on July 17, 2024

Update: finally had time to work on this. It turned out we can't really support both is_admin and access_role at the same time, so I'm going to deprecate is_admin for now and remove it completely with a major release, where access_role will be introduced.

from terraform-provider-datadog.

pdecat avatar pdecat commented on July 17, 2024

Hi @masci, have you looked into using ConflictsWith like is done for the downtime resource?

This would probably help introducing access_role before removing is_admin.
Right now, upgrading to 1.2.0 produces a lot of deprecation warnings for us which cannot be resolved.

from terraform-provider-datadog.

keith-minnig avatar keith-minnig commented on July 17, 2024

Any updates?

from terraform-provider-datadog.

burukuru avatar burukuru commented on July 17, 2024

For anyone who lands here, PR https://github.com/terraform-providers/terraform-provider-datadog/pull/155 implements access_role. This was merged and available from release 1.7 (current is 1.8).

I kept having issues with Terraform trying to set is_admin from true to false so had work around it with a lifecycle:

  lifecycle {
    ignore_changes = [
      "is_admin",
    ]
  }

from terraform-provider-datadog.

bkabrda avatar bkabrda commented on July 17, 2024

So this has been implemented in #155 and documented in #178, therefore I think it's safe to close this. Thanks all who participated in the discussion!

from terraform-provider-datadog.

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.