Age Terraform Provider

This provider lets you generate an Age key pair.

Using the provider

View the documentation on Terraform registry or in the docs folder

terraform {
  required_providers {
    age = {
      source = "ConsenSys/age"

resource "age_secret_key" "example" {}


If you wish to work on the provider, you’ll need:

To compile the provider, run make. This will build the provider and put the provider binary in the $GOPATH/bin directory.

Add the local build to your local Terraform plugins so you can test it in your project context.

mkdir -p ~/.terraform.d/plugins/$(go env GOOS)_$(go env GOARCH)
ln -s $(go env GOPATH)/bin/terraform-provider-age ~/.terraform.d/plugins/$(go env GOOS)_$(go env GOARCH)/terraform-provider-age

In order to run the full suite of Acceptance tests, run make test.

To generate or update documentation, run make doc.


To release, just push a new tag respecting Semver:

git tag $VERSION main
git push origin $VERSION


View Github