Skip to content

Commit

Permalink
add forcenew to a pair of pem (#7896) (#14521)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>
Co-authored-by: Edward Sun <[email protected]>
  • Loading branch information
modular-magician and Edward Sun authored May 8, 2023
1 parent e15f28a commit 320e80c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/7896.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
certificatemanager: fixed an issue where `self_managed.pem_certificate` and `self_managed.pem_certificate` can't be updated on `google_certificate_manager_certificate`
```
4 changes: 4 additions & 0 deletions google/resource_certificate_manager_certificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ certificates before they expire remains the user's responsibility.`,
Type: schema.TypeString,
Optional: true,
Deprecated: "Deprecated in favor of `pem_certificate`",
ForceNew: true,
Description: `**Deprecated** The certificate chain in PEM-encoded form.
Leaf certificate comes first, followed by intermediate ones if any.`,
Expand All @@ -217,6 +218,7 @@ Leaf certificate comes first, followed by intermediate ones if any.`,
"pem_certificate": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Description: `The certificate chain in PEM-encoded form.
Leaf certificate comes first, followed by intermediate ones if any.`,
Expand All @@ -225,6 +227,7 @@ Leaf certificate comes first, followed by intermediate ones if any.`,
"pem_private_key": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Description: `The private key of the leaf certificate in PEM-encoded form.`,
Sensitive: true,
ExactlyOneOf: []string{"self_managed.0.private_key_pem", "self_managed.0.pem_private_key"},
Expand All @@ -233,6 +236,7 @@ Leaf certificate comes first, followed by intermediate ones if any.`,
Type: schema.TypeString,
Optional: true,
Deprecated: "Deprecated in favor of `pem_private_key`",
ForceNew: true,
Description: `**Deprecated** The private key of the leaf certificate in PEM-encoded form.`,
Sensitive: true,
ExactlyOneOf: []string{"self_managed.0.private_key_pem", "self_managed.0.pem_private_key"},
Expand Down

0 comments on commit 320e80c

Please sign in to comment.