Coder Social home page Coder Social logo

Comments (5)

MCBrandenburg avatar MCBrandenburg commented on June 14, 2024 1

@robotdan I will try to get these added over the course of this weekend.

I think building that way should be a goal main things needed would be to known:

  • computed, optional, required
  • defaults if applicable
  • description(I've been copying and pasting from the api docs)

from terraform-provider-fusionauth.

robotdan avatar robotdan commented on June 14, 2024

Ok, let me think about this, and see if the team has any good ideas. It would be cool if we could produce enough meta data from our build that would all you to convert it directly into a resource schema or something like that.

from terraform-provider-fusionauth.

mooreds avatar mooreds commented on June 14, 2024

If we end up building an OpenAPI spec ( FusionAuth/fusionauth-issues#614 ), I think that this project would be useful to address this issue: https://github.com/dikhan/terraform-provider-openapi

from terraform-provider-fusionauth.

drpebcak avatar drpebcak commented on June 14, 2024

The openapi provider seems cool conceptually, but it sounds like a nightmare to use. Having the spec be dynamic will likely cause issues with the state and resources needing to be modified unnecessarily (especially when it comes to attributes that are computed). I can see this causing some big problems during breaking api changes as well - having your resource names and everything mapped to endpoint names means that changing endpoint names will require migration or deletion/recreation of resources. That is one of the things terraform is great about.. abstraction.

It also means that no validation can be done during the plan phase to ensure that args are valid before attempting to apply, no special helper methods can be added to do things like work around formatting differences between the source and api response, configuring dependencies between objects in the api, lifecycle management of resources, etc.

from terraform-provider-fusionauth.

MCBrandenburg avatar MCBrandenburg commented on June 14, 2024

@robotdan these updates should be out in v0.1.25

from terraform-provider-fusionauth.

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.