Skip to content

Commit 7726850

Browse files
set all of replication to ForceNew (#5124) (#3558)
Signed-off-by: Modular Magician <[email protected]>
1 parent 73ae281 commit 7726850

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.changelog/5124.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
```release-note:bug
2+
secretmanager: fixed an issue where `replication` fields would not update in `google_secret_manager_secret`
3+
4+
```

google-beta/resource_secret_manager_secret.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,38 +54,44 @@ after the Secret has been created.`,
5454
"automatic": {
5555
Type: schema.TypeBool,
5656
Optional: true,
57+
ForceNew: true,
5758
Description: `The Secret will automatically be replicated without any restrictions.`,
5859
ExactlyOneOf: []string{"replication.0.automatic", "replication.0.user_managed"},
5960
},
6061
"user_managed": {
6162
Type: schema.TypeList,
6263
Optional: true,
64+
ForceNew: true,
6365
Description: `The Secret will automatically be replicated without any restrictions.`,
6466
MaxItems: 1,
6567
Elem: &schema.Resource{
6668
Schema: map[string]*schema.Schema{
6769
"replicas": {
6870
Type: schema.TypeList,
6971
Required: true,
72+
ForceNew: true,
7073
Description: `The list of Replicas for this Secret. Cannot be empty.`,
7174
MinItems: 1,
7275
Elem: &schema.Resource{
7376
Schema: map[string]*schema.Schema{
7477
"location": {
7578
Type: schema.TypeString,
7679
Required: true,
80+
ForceNew: true,
7781
Description: `The canonical IDs of the location to replicate data. For example: "us-east1".`,
7882
},
7983
"customer_managed_encryption": {
8084
Type: schema.TypeList,
8185
Optional: true,
86+
ForceNew: true,
8287
Description: `Customer Managed Encryption for the secret.`,
8388
MaxItems: 1,
8489
Elem: &schema.Resource{
8590
Schema: map[string]*schema.Schema{
8691
"kms_key_name": {
8792
Type: schema.TypeString,
8893
Required: true,
94+
ForceNew: true,
8995
Description: `Describes the Cloud KMS encryption key that will be used to protect destination secret.`,
9096
},
9197
},

0 commit comments

Comments
 (0)