Skip to content

Commit

Permalink
Fixes PermaDiff Issue in `google_storage_transfer_job.aws_s3_data_sou…
Browse files Browse the repository at this point in the history
…rce.aws_access_key` field (#12666)

[upstream:2b00b9bdf989b2ea8902acec8ee401d0d889da22]

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician committed Jan 8, 2025
1 parent e160c2c commit 6b4e76a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/12666.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
storagetransfer: fixed a permadiff with `transfer_spec.aws_s3_data_source.aws_access_key` in `google_storage_transfer_job`
```
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,7 @@ func flattenAwsS3Data(awsS3Data *storagetransfer.AwsS3Data, d *schema.ResourceDa
"path": awsS3Data.Path,
"role_arn": awsS3Data.RoleArn,
}
if _, exist := d.GetOkExists("transfer_spec.0.aws_s3_data_source.0.aws_access_key"); exist {
if _, exist := d.GetOk("transfer_spec.0.aws_s3_data_source.0.aws_access_key"); exist {
data["aws_access_key"] = flattenAwsAccessKeys(d)
}
return []map[string]interface{}{data}
Expand Down

0 comments on commit 6b4e76a

Please sign in to comment.