How to change the existing images embedded in Views Twig template to S3 bucket URL I have embedded the images using views twig template, 

file_url(row['content']['#row']._entity.field_future_program_image.entity.fileuri) %}


The output is public://2018-07/10a_0_0.JPG

Instead, I need the image URL from the s3 bucket: https://s3.bucketname/2018-07/10a_0_0.JPG

Note: I have configured amazon s3 and moved the local files to s3
Try adding

$settings['s3fs.use_s3_for_public'] = TRUE;


After that clear cache, now your site images will render form Amazon S3 bucket.