asset.first().getUrl('transform') not working for s3 asset - Craft CMS 2.6.2980 I can load the s3 image fine using the s3 base path and the craft cms filename that is saved in the craft cms database:

&lt;img src="{{cdnUrl}}/filepath/{{entry.Image.first().filename }}" /&gt;
renders
&lt;img src="cdn.imageurl.com/filepath/filename.jpg" /&gt;  

However if I want to access the same image without the s3 base path (e.g. in order to use an image transform), I get a null. 

&lt;img src="{{entry.Image.first().getUrl('transform')}}" /&gt;
renders
&lt;img src="" /&gt;  

Any help would be appreciated!
Turns out you need to have the URL prefix set under the Asset Settings in order to call .getUrl()


Once I added this, my transforms began working.