Skip to content

Commit 1791846

Browse files
committed
Add module versioning and upgrade path
1 parent 1f512ae commit 1791846

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

README.md

+18-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,26 @@
11
# Terraform AWS Certificate Manager (ACM) with Multiple Hosted Zone Module
22

33
Terraform module to create an ACM resource that contains domains from multiple Route53 hosted zone.
4-
ACM validation is using Route53 only.
4+
This module allows provisoning ACM certificate in different AWS account with the Route53.
55
This module supports terraform version 0.12 only.
66

7+
## Module versions
8+
9+
- Module version 1.x is in the `master` branch.
10+
- Module version 2.x is in the `v2xx` branch.
11+
12+
Module version 2 introduces breaking change. You can't use version 1.x configuration with module 2.x and vice versa.
13+
To upgrade your existing Terraform project to module version 2, I suggest to provision a new certificate with the same domain name and subject alternatives name. Here is the step would look like:
14+
15+
1. Instantiate `acm-multiple-hosted-zone` version 2 in your existing terraform project.
16+
1. Provision a new ACM certificate using `acm-multiple-hosted-zone` version 2.
17+
18+
1. Run `terraform plan -out=tfplan.out`.
19+
1. Run `terraform apply tfplan.out`.
20+
1. Write down ARN of the newly created ACM certificate.
21+
22+
1. On the consumer side of ACM certificate (For example, ALB), replace old certificate with the new one. This will guarantee a graceful upgrade without downtime.
23+
724
## Usage
825

926
The `domain_name` and `subject_alternative_names` variables consist of map (object) of string and list of map of string. Each object must consist **zone** and **domain** keys.

0 commit comments

Comments
 (0)