terraform_provider

Terraform Provider Fawcetts

Purpose

This provider is a simple prototype that connects to an REST API and initially gets some data.

Further Reading

CRUD - Create Read Update Delete

Perform CRUD Operations with Providers

Provider Delivery

Build

Run the following command to build the provider

go build -o terraform-provider-fawcetts

Install

First, build and install the provider.

make install

Terraform Usage

Then, run the following command to initialize the workspace and apply the sample configuration.

cd examples
terraform init && terraform apply

CRUD

Read

```yaml terraform { required_providers { fawcetts = { version = “0.2” source = “sfawcett123.github.io/github/fawcetts” } } }

data “fawcetts_repositories” “all” {}

output “repos” { value = data.fawcetts_repositories.all.repositories }```