Skip to content

Commit b496953

Browse files
authored
fix(lb): add ForceNew to the schema of the certificate (#1275)
1 parent fcc1c34 commit b496953

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/resources/lb_certificate.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ The following arguments are supported:
5656

5757
- `letsencrypt` - (Optional) Configuration block for Let's Encrypt configuration. Only one of `letsencrypt` and `custom_certificate` should be specified.
5858

59-
- `common_name` - (Required) Main domain of the certificate.
59+
- `common_name` - (Required) Main domain of the certificate. A new certificate will be created if this field is changed.
6060

61-
- `subject_alternative_name` - (Optional) Array of alternative domain names.
61+
- `subject_alternative_name` - (Optional) Array of alternative domain names. A new certificate will be created if this field is changed.
6262

6363
~> **Important:** Updates to `letsencrypt` will recreate the load-balancer certificate.
6464

scaleway/resource_lb_certificate.go

+2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ func resourceScalewayLbCertificate() *schema.Resource {
4949
"common_name": {
5050
Type: schema.TypeString,
5151
Required: true,
52+
ForceNew: true,
5253
Description: "The main domain name of the certificate",
5354
},
5455
"subject_alternative_name": {
@@ -57,6 +58,7 @@ func resourceScalewayLbCertificate() *schema.Resource {
5758
Type: schema.TypeString,
5859
},
5960
Optional: true,
61+
ForceNew: true,
6062
Description: "The alternative domain names of the certificate",
6163
},
6264
},

0 commit comments

Comments
 (0)