Code Monkey home page Code Monkey logo

Comments (3)

willvedd avatar willvedd commented on August 11, 2024 1

@jeffreymlewis Thanks for providing this feedback, your suggestion is certainly reasonable. And in fact it is an opportunity to review all of our data sources to ensure that they handle 404s appropriately.

We've earmarked this as a must-have for our upcoming major release. This work has been completed in #698 but not available until that release goes out; will keep this ticket open in the meantime.

from terraform-provider-auth0.

jeffreymlewis avatar jeffreymlewis commented on August 11, 2024

Here's a better work-around.

data "auth0_resource_server" "default" {
  identifier = data.auth0_tenant.main.management_api_identifier
  lifecycle {
    # This `postcondition` is necessary because the auth0 provider returns null, rather then an error, when
    # looking up resource servers which do not exist.
    postcondition {
      condition = self.identifier != null
      error_message = "Could not find default Resource Server for tenant ${data.auth0_tenant.main.domain}"
    }
  }
}

data "auth0_tenant" "main" {}

from terraform-provider-auth0.

sergiught avatar sergiught commented on August 11, 2024

Hey @jeffreymlewis 👋🏻

This should be fixed now as part of the v1.0.0-beta.0 release! 🙌🏻 Please give it a try and let us know if you encounter any issues.

terraform {
  required_providers {
    auth0 = {
      source  = "auth0/auth0"
      version = "1.0.0-beta.0"
    }
  }
}

📚 Resources

Quickstart | Documentation | Migration Guide | Changelog

from terraform-provider-auth0.

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.