terraform-provider-shell-init

command module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2021 License: MPL-2.0 Imports: 2 Imported by: 0

README

Terraform Provider Shell Init

https://registry.terraform.io/providers/harana-oss/shell-init

This provider executes a sequence of shell scripts when it is initialised.

Requirements

Building The Provider

  1. Clone the repository
  2. Enter the repository directory
  3. Build the provider using the Go install command:
$ go install

Adding Dependencies

This provider uses Go modules. Please see the Go documentation for the most up to date information about using Go modules.

To add a new dependency github.com/author/dependency to your Terraform provider:

go get github.com/author/dependency
go mod tidy

Then commit the changes to go.mod and go.sum.

Using the Provider

Set the following environment variable: TF_INIT_SCRIPTS to a list of script files e.g. TF_INIT_SCRIPTS="script1.sh, script2.sh".

Then configure the provider as follows

terraform {
  required_providers {
    shell = {
      source = "harana-oss/shell-init"
      version = "1.0"
    }
  }
}

provider "shell" {}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL