simple-tf-provider

command
v0.0.0-...-b64d16d Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 License: MIT Imports: 5 Imported by: 0

README

Terraform ToDoList Provider

This is not a real project, but an exercise in order to learn how to build Terraform Providers

The goal is to create a ToDo list that is stored on disk using files and folders.

resource "todo_storage" "todos_storage" {
   path= "~/todos-store"
}

resource "todo_list" "project_one" {
   name = "TestProject"
   path= todo_storage.local.path
   category = "Home"
}

resource "todo_list_item" "walk_todo" {
   description = "Go for a walk"
   list_name = todo_list.name
}
Running the Project:
  • Ensure you have Terraform and GoLang installed.
  • Invoke build.sh
  • Navigate to the infra folder.
  • terraform apply -auto-approve
  • Verify that a file called TestProject.txt was created in base_path/category.
  • terraform delete -auto-approve
  • Verify that file was deleted.
Project Status:
  • todo_list resource is now supported. A file with the project name is created under the base_path / category.
ToDo:
  • Implement todo_list_item.
  • Add Unit Tests.
  • Refactor base folder into it's own resource so it can be managed via terraform as well.
  • Add support Updates..
  • Create step by step walkthrough.

Resources:

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