Skip to content

Commit 0422846

Browse files
committed
Add guide to taint certificate
1 parent 79b845f commit 0422846

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ module "acm" {
4545
- [Basic usage example](./examples/basic/)
4646
- [Use existing domain validations records](./examples/without-domain-validation)
4747

48+
## Recreating ACM Certificate
49+
50+
Due to the [https://github.com/terraform-providers/terraform-provider-aws/issues/8531](https://github.com/terraform-providers/terraform-provider-aws/issues/8531) issue, this module implement a workaround that makes existing ACM certificate won't be recreated when we change the subject alternatives name. So make sure to taint the certificate using `terraform taint` command before adjusting the subject alternatives name. Here is the steps:
51+
52+
1. Taint exisiting certificate using `terraform taint module.acm.aws_acm_certificate.self` command.
53+
1. Adjust value of the `subject_alternatives_name` variable.
54+
1. Run `terraform plan -out=tfplan.out` and review the execution plan.
55+
1. Apply the change using `terraform apply tfplan.out`.
56+
4857
## Inputs
4958

5059
| Name | Description | Type | Default | Required |

0 commit comments

Comments
 (0)