@lukekaalim/terraform-service
v2.0.1
Published
An implementation of a Terraform Plugin GRPC service
Downloads
2
Readme
title: "@lukekaalim/terraform-service" layout: default parent: Packages nav_order: 6
@lukekaalim/terraform-service
Provides a bare-bones implementation of the Terraform GRPC service. Use with @lukekaalim/hashicorp-go-plugin
to create a terraform plugin.
Installation
npm install @lukekaalim/terraform-service
API
createTerraformService()
const { createTerraformService } = require('@lukekaalim/terraform-service');
const options = {
getSchema,
};
const service = createTerraformService(
console, // Console
server, // Server
options, // ServiceOptions
);
const {
definition, // GRPCServiceDefinition
implementation, // GRPCServiceImplementation
} = service;
const getSchema = async () => ({
provider, // Schema
resourceSchemas, // { [string]: Schema }
dataSourceSchemas, // { [string]: Schema }
diagnostics, // Diagnostic[]
});
getDynamicValue()
setPackedDynamicValue()
setJSONDynamicValue()
new Unknown()
TODO
- Finish API documentation