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.
- Terraform 0.12+
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.
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.
From the top directory of the repository:
$ go build
A terraform-provider-time
binary will be left in the current directory.
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.
From the top directory of the repository:
$ go test ./...