Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set all of replication to ForceNew #9894

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .changelog/5124.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
```release-note:bug
secretmanager: fixed an issue where `replication` fields would not update in `google_secret_manager_secret`

```
6 changes: 6 additions & 0 deletions google/resource_secret_manager_secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,38 +54,44 @@ after the Secret has been created.`,
"automatic": {
Type: schema.TypeBool,
Optional: true,
ForceNew: true,
Description: `The Secret will automatically be replicated without any restrictions.`,
ExactlyOneOf: []string{"replication.0.automatic", "replication.0.user_managed"},
},
"user_managed": {
Type: schema.TypeList,
Optional: true,
ForceNew: true,
Description: `The Secret will automatically be replicated without any restrictions.`,
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"replicas": {
Type: schema.TypeList,
Required: true,
ForceNew: true,
Description: `The list of Replicas for this Secret. Cannot be empty.`,
MinItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"location": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
Description: `The canonical IDs of the location to replicate data. For example: "us-east1".`,
},
"customer_managed_encryption": {
Type: schema.TypeList,
Optional: true,
ForceNew: true,
Description: `Customer Managed Encryption for the secret.`,
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"kms_key_name": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
Description: `Describes the Cloud KMS encryption key that will be used to protect destination secret.`,
},
},
Expand Down