terraform-provider-logtail

command module
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

README

terraform-provider-logtail

build tests documentation

Terraform (0.13+) provider for Better Stack Logs (formerly Logtail.com).

Installation

terraform {
  required_version = ">= 0.13"
  required_providers {
    logtail = {
      source = "BetterStackHQ/logtail"
      version = ">= 0.2.0"
    }
  }
}

Example Usage

provider "logtail" {
  # `api_token` can be omitted if LOGTAIL_API_TOKEN env var is set.
  api_token = "XXXXXXXXXXXXXXXXXXXXXXXX"
}

resource "logtail_source" "this" {
  name     = "Production Server"
  platform = "ubuntu"
}

output "logtail_source_token" {
  value = logtail_source.this.token
}

Documentation

See Terraform Registry docs.

Development

PREREQUISITE: go1.16+.

git clone https://github.com/betterstackhq/terraform-provider-logtail && \
  cd terraform-provider-logtail

make help

Releasing New Versions

Simply push a new tag vX.Y.Z to GitHub and a new version will be built and released automatically through a GitHub action.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL