This provider is available via the Terraform Registry with Terraform v0.13+
⚠️ We strongly recommend pinning the provider version to a target major version, as to ensure future breaking changes do not affect workflows and automated CI pipelines
terraform {
required_providers {
account = {
source = "ans-group/account"
version = "~> 1.0"
}
}
}
provider "account" {
api_key = "abc"
}
To get started, the terraform-provider-account binary (.exe extension if Windows) should be downloaded from Releases and placed in the plugins directory (see here for more information). For this example, we'll place it in ~/.terraform.d/plugins/
We'll then need to initialise terraform with our provider:
terraform initFinally, we can invoke terraform apply to apply our terraform configuration:
terraform applyDocumentation is located within this repository at /docs, and is published in the Terraform Registry
Acceptance tests can be executed using make as below:
make testacc
goreleaser is used to release the provider on Github. First, obtain your GPG fingerprint:
gpg -k
Cache GPG passphrase:
gpg --armor --detach-sign -n main.go
Finally tag and invoke goreleaser:
git tag v2.0.0
git push --tags
export GITHUB_TOKEN=<token>
export GPG_FINGERPRINT=<fingerprint>
export GPG_TTY=$(tty)
goreleaser --rm-dist