/tfpluginschema

Terraform schema definition stands in the middle of the Terraform core schema and the Plugin SDK schema.

Primary LanguageGoMozilla Public License 2.0MPL-2.0

PkgGoDev

tfpluginschema

Terraform schema definition stands in the middle of the Terraform core schema and the Plugin SDK/FW schema.

Why

The motivation for this is to add more information that is lost during the conversion from plugin sdk to the terraform core schema. These information are fatal for developing tools that is oriented to the provider, rather than to the terraform core.

Specifically, we are:

  1. Adding Default for the Attribute
  2. Adding Required, Optional, Computed for the BlockType (SDK v2 only)
  3. Adding ExactlyOneOf, AtLeastOneOf, ConflictsWith and RequiredWith for both BlockType and the Attribute (SDK v2 only)
  4. Removing any other attributes