Page cover image

2 5 0 Deploying to TerraTowns (HCL)

Andrew test-deploys a house on the test town Missingo using our fully-functional custom plugin.

Code Notes

  • I trust that we have covered enough knowledge to understand how Go works and how the plugin is written in Go. This section provides the side-by-side comparison of Go in use in HCL (left) and the underlying mechanism of the "Go binary" (right).

  • The source code: main.tf & main.go

Provider() - the use of Go binary in HCL (left) and the source code of the Go binary (right)
Resource() - the use of Go binary in HCL (left) and the source code of the Go binary (right)

Or see the source code in Github yourself:

Once deployed, below is what a terratowns house looks like on the Cloud service (TerraTowns).

Resources

Last updated