File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -23,15 +23,23 @@ deploy the required validation records and wait for validation to complete.
2323Domain validation through E-Mail is also supported but should be avoided as it requires a manual step outside
2424of Terraform.
2525
26+ It's recommended to specify ` create_before_destroy = true ` in a [ lifecycle] [ 1 ] block to replace a certificate
27+ which is currently in use (eg, by [ ` aws_lb_listener ` ] ( lb_listener.html ) ).
28+
2629## Example Usage
2730
2831``` hcl
2932resource "aws_acm_certificate" "cert" {
30- domain_name = "example.com"
33+ domain_name = "example.com"
3134 validation_method = "DNS"
35+
3236 tags {
3337 Environment = "test"
3438 }
39+
40+ lifecycle {
41+ create_before_destroy = true
42+ }
3543}
3644```
3745
@@ -60,6 +68,8 @@ Domain validation objects export the following attributes:
6068* ` resource_record_type ` - The type of DNS record to create
6169* ` resource_record_value ` - The value the DNS record needs to have
6270
71+ [ 1 ] : /docs/configuration/resources.html#lifecycle
72+
6373## Import
6474
6575Certificates can be imported using their ARN, e.g.
You can’t perform that action at this time.
0 commit comments