Is there any way to specify --endpoint-url in aws cli config file

This is an open bug in the AWS CLI. There's a link there to a cli plugin which might do what you need.

It's worth pointing out that if you're just connecting to standard Amazon cloud services (like S3) you don't need to specify --endpoint-url at all. But I assume you're trying to connect to some other private service and that url in your example was just, well, an example...


alias aws='aws --endpoint-url http://website'