Skip to content

Commit

Permalink
Fix the permadiff issue related to aws creds in resource_storage_tran…
Browse files Browse the repository at this point in the history
…sfer_job. (#10672) (#18190)

[upstream:adcf1d53c47398a918330bb368625f72e6a8eeb2]

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored May 20, 2024
1 parent 991105c commit 8e89189
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1044,10 +1044,9 @@ func flattenAwsS3Data(awsS3Data *storagetransfer.AwsS3Data, d *schema.ResourceDa
"path": awsS3Data.Path,
"role_arn": awsS3Data.RoleArn,
}
if awsS3Data.AwsAccessKey != nil {
if _, exist := d.GetOkExists("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 8e89189

Please sign in to comment.