ACME (Let's Encrypt) Support for Terraform
-
Install acme provider
$ go get github.com/paybyphone/terraform-provider-acme
$ go install github.com/paybyphone/terraform-provider-acme
-
update terraform configuration
$ cat ~/.terraformrc
providers {
acme = "${GOPATH}/bin/terraform-provider-acme"
}
-
Update s3 backend bucket in
config/backend-dev.conf
-
update domain names in
config/dev.conf
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
Name | Description | Default | Required |
---|---|---|---|
common_name | dev.example.com |
no | |
dns_names | <list> |
no | |
email_address | [email protected] |
no | |
region | ap-southeast-2 |
no |