terraform-provider-bitly

command module
v0.0.0-...-e3fb809 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

README

terraform-provider-bitly

A terraform provider for Bitly, this is a example terraform provider to show case the creation of Terraform provider.

How to Run the example

Prep work

  • Install Azure CLI

    • Ubuntu: sudo apt install azure-cli
    • OS X: brew install azure-cli
  • Azure login

    • az login
  • Get the bitly token

    • Login to bitly, top right cornor "${Username}" -> "Profile Settings" -> "Generate Access Token"
    • Set the token in shell: export BITLY_TOKEN=xxxxxxxx

Now, run the usual terraform command to provision

cd example
terraform init
# [Optional] Plan to see what will be created
terraform plan

terraform apply

Implementation Notes

This provider uses the high level Terraform provider SDK, a.k.a the"Schema" API.

The bitly golang client is github.com/retgits/bitly, which is a thin wrapper around Bitly v4 API.

For other useful info, read more at the offcial HashiCorp Tutorial.

Directory Structure

.
├── bitly
│   ├── provider.go
│   └── resource_link.go
├── example
│   ├── azure.tf
│   ├── crash.log
│   ├── main.tf
│   ├── terraform.tfstate
│   └── terraform.tfstate.backup
├── go.mod
├── go.sum
├── LICENSE
├── main.go
├── README.md
└── terraform-provider-bitly

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