BWITS / tf_aws_acme

Terraform module to manage ACME (Let's Encrypt) registrations and certificates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Information

ACME (Let's Encrypt) Support for Terraform

Prerequisite

  1. Install acme provider

    $ go get github.com/paybyphone/terraform-provider-acme

    $ go install github.com/paybyphone/terraform-provider-acme

  2. update terraform configuration

$ cat ~/.terraformrc

providers {
  acme = "${GOPATH}/bin/terraform-provider-acme"
}
  1. Update s3 backend bucket in config/backend-dev.conf

  2. update domain names in config/dev.conf

Usage

env=dev
terraform get -update=true
terraform init -backend-config=config/backend-${env}.conf
terraform plan -var-file=config/${env}.tfvars -input=false -out=plan

If it is fine, apply the change.

terraform apply plan

Inputs

Name Description Default Required
common_name dev.example.com no
dns_names <list> no
email_address someone@example.com no
region ap-southeast-2 no

About

Terraform module to manage ACME (Let's Encrypt) registrations and certificates


Languages

Language:HCL 100.0%