Skip to content

duxing/terraform-provider-time

 
 

Repository files navigation

terraform-provider-time

Terraform Provider for time-based resources.

Please note: Issues on this repository are intended to be related to bugs or feature requests with this particular provider codebase. See Terraform Community for a list of resources to ask questions about Terraform or this provider and its usage.

Requirements

Using the Provider

This Terraform Provider is available to install automatically via terraform init. It is recommended to setup the following Terraform configuration to pin the major version:

# Terraform 0.13 and later
terraform {
  required_providers = {
    time = {
      source  = "hashicorp/time"
      version = "~> X.Y" # where X.Y is the current major version and minor version
    }
  }
}

# Terraform 0.12
terraform {
  required_providers = {
    time = "~> X.Y" # where X.Y is the current major version and minor version
  }
}

Additional documentation, including available resources and their arguments/attributes can be found on the Terraform documentation website.

Developing the Provider

If you wish to work on the provider, you'll first need Go 1.16 or later installed on your machine. This project uses Go Modules making it safe to work with it outside of your existing GOPATH.

Building the Provider

From the top directory of the repository:

$ go build

A terraform-provider-time binary will be left in the current directory.

Running the Custom Provider

Follow the instructions to install it as a plugin, e.g.place the custom provider into your plugins directory and run terraform init to initialize it.

Testing the Provider

From the top directory of the repository:

$ go test ./...

Packages

No packages published

Languages

  • Go 95.0%
  • HTML 1.8%
  • Shell 1.7%
  • Makefile 1.5%