Skip to content

Commit

Permalink
Prevent read-only ActiveEncryptionCertificate property from being use…
Browse files Browse the repository at this point in the history
…d in ProviderDetails for UpdateIdentityProvider call
  • Loading branch information
jdoetsch-built committed Mar 12, 2024
1 parent 331d948 commit e9abb2d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/service/cognitoidp/identity_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,9 @@ func resourceIdentityProviderUpdate(ctx context.Context, d *schema.ResourceData,
}

if d.HasChange("provider_details") {
params.ProviderDetails = flex.ExpandStringMap(d.Get("provider_details").(map[string]interface{}))
providerDetailsForUpdate := flex.ExpandStringMap(d.Get("provider_details").(map[string]interface{}))
delete(providerDetailsForUpdate, "ActiveEncryptionCertificate")
params.ProviderDetails = providerDetailsForUpdate
}

if d.HasChange("idp_identifiers") {
Expand Down

0 comments on commit e9abb2d

Please sign in to comment.