Create a rule for a CDN resource: manually or from a template