Skip to content

nicklasfrahm/pulumi-ssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SSH Pulumi Provider

Manage a remote server declaratively via SSH.

Usage

You may find usage examples in the examples/ directory.

Contributing

This package is heavily inspired by the pulumi/pulumi-google-native package and the pulumi/pulumi-provider-boilerplate package. Most of the code for the provider implementation is in pkg/provider/provider.go.

A code generator is available which generates SDKs in TypeScript, Python, Go and .NET which are also checked in to the sdk folder. The SDKs are generated from a schema in provider/cmd/pulumi-resource-ssh/schema.json. This file should be kept aligned with the resources, functions and types supported by the provider implementation.

Note that the generated provider plugin (pulumi-resource-ssh) must be on your PATH to be used by Pulumi deployments. If creating a provider for distribution to other users, you should ensure they install this plugin to their PATH.

Pre-requisites

Install the pulumictl cli from the releases page or follow the install instructions

NB: Usage of pulumictl is optional. If not using it, hard code the version in the Makefile of when building explicitly pass version as VERSION=0.0.1 make build

Build and Test

# build and install the resource provider plugin
$ make build install

# test
$ cd examples/simple
$ yarn link @pulumi/xyz
$ yarn install
$ pulumi stack init test
$ pulumi up

References

Other resources for learning about the Pulumi resource model:

About

Manage a remote server declaratively via SSH.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published