Skip to content

Commit 8cf6547

Browse files
committed
Add support for TDE key rotation
1 parent 87411d2 commit 8cf6547

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

pkg/resource/service.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ func (r *ServiceResource) ModifyPlan(ctx context.Context, req resource.ModifyPla
790790
}
791791
}
792792

793-
var defaultTDE = false
793+
defaultTDE := false
794794
{
795795
if config.TransparentEncryptionData.IsNull() || config.TransparentEncryptionData.IsUnknown() {
796796
defaultTDE = true

pkg/resource/service_test.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,10 @@ func getInitialState() models.ServiceResourceModel {
560560
EncryptionKey: types.StringNull(),
561561
EncryptionAssumedRoleIdentifier: types.StringNull(),
562562
BackupConfiguration: backupConfiguration,
563-
TransparentEncryptionData: types.ObjectNull(models.TransparentEncryptionData{}.ObjectType().AttrTypes),
563+
TransparentEncryptionData: models.TransparentEncryptionData{
564+
Enabled: types.BoolValue(false),
565+
RoleID: types.StringNull(),
566+
}.ObjectValue(),
564567
}
565568

566569
return state

0 commit comments

Comments
 (0)