File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed
Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ type AwsDbInstance struct {
3434 InstanceClass * string `cty:"instance_class"`
3535 Iops * int `cty:"iops"`
3636 KmsKeyId * string `cty:"kms_key_id" computed:"true"`
37- LatestRestorableTime * string `cty:"latest_restorable_time" computed:"true"`
37+ LatestRestorableTime * string `cty:"latest_restorable_time" computed:"true" diff:"-" `
3838 LicenseModel * string `cty:"license_model" computed:"true"`
3939 MaintenanceWindow * string `cty:"maintenance_window" computed:"true"`
4040 MaxAllocatedStorage * int `cty:"max_allocated_storage"`
Original file line number Diff line number Diff line change 1+ package aws
2+
3+ import (
4+ "github.com/cloudskiff/driftctl/pkg/resource"
5+ )
6+
7+ func (r * AwsDbInstance ) NormalizeForState () (resource.Resource , error ) {
8+ if r .SnapshotIdentifier != nil && * r .SnapshotIdentifier == "" {
9+ r .SnapshotIdentifier = nil
10+ }
11+ if r .AllowMajorVersionUpgrade != nil && ! * r .AllowMajorVersionUpgrade {
12+ r .AllowMajorVersionUpgrade = nil
13+ }
14+ if r .ApplyImmediately != nil && ! * r .ApplyImmediately {
15+ r .ApplyImmediately = nil
16+ }
17+ return r , nil
18+ }
19+
20+ func (r * AwsDbInstance ) NormalizeForProvider () (resource.Resource , error ) {
21+ return r , nil
22+ }
You can’t perform that action at this time.
0 commit comments