diff --git a/.changelog/32698.txt b/.changelog/32698.txt new file mode 100644 index 00000000000..f835f940453 --- /dev/null +++ b/.changelog/32698.txt @@ -0,0 +1,3 @@ +```release-note:bug +resource/aws_dms_s3_endpoint: Don't send the default value of `false` for `add_trailing_padding_character` to maintain compatibility with older ((pre-3.4.7)[https://docs.aws.amazon.com/dms/latest/userguide/CHAP_ReleaseNotes.html#CHAP_ReleaseNotes.DMS347]) DMS engine versions +``` diff --git a/internal/service/dms/s3_endpoint.go b/internal/service/dms/s3_endpoint.go index 2825473d891..13aedc90725 100644 --- a/internal/service/dms/s3_endpoint.go +++ b/internal/service/dms/s3_endpoint.go @@ -576,8 +576,8 @@ func s3Settings(d *schema.ResourceData, target bool) *dms.S3Settings { s3s.AddColumnName = aws.Bool(v) } - if v, ok := d.Get("add_trailing_padding_character").(bool); ok && target { // target - s3s.AddTrailingPaddingCharacter = aws.Bool(v) + if v, ok := d.GetOk("add_trailing_padding_character"); ok && target { // target + s3s.AddTrailingPaddingCharacter = aws.Bool(v.(bool)) } if v, ok := d.GetOk("bucket_folder"); ok {