Skip to content
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.

spring-media/la-terraform-plugin-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

la-terraform-plugin-example

Terraform example plugin

Build

go get github.com/WeltN24/la-terraform-plugin-example

Use

Install the plugin https://www.terraform.io/docs/plugins/basics.html#installing-a-plugin

Example ~/.terraformrc:

providers {
    chucks = "$GOPATH/bin/la-terraform-plugin-example"
}

or copy it into the project directory

For random joke

data "chucks_jokes" "foo" {}
output "joke" {
    value = "${data.chucks_jokes.foo.joke}"
}

For joke with id

data "chucks_jokes" "foo" {
    id = 103
}

output "joke" {
    value = "${data.chucks_jokes.foo.joke}"
}

Releases

No releases published

Packages

No packages published

Languages