Customize Naming

Naming resources in AWS turns out to be pretty important.

A service needs a lot of AWS resources, and inconsistent naming can make resource management a pain.

yac is in the business of creating AWS resources.

Like any good bot, yac does exactly as its told, but can only do your bidding if you first communicate your bidding.

Default Resource Namer

By default, yac will name the resources it creates according to the functions in yac.lib.naming_std.

If you want complete control over your naming conventions, and you don't mind slinging some python, you can register your own python file that implements your own naming logic.

Most users will find the default namer satisfactory and can safely ignore the sections below.

We recommend printing some stacks to get a feel from your naming likes and dislikes before contemplating naming customizations.

Custom Resource Namer

Add a namer to your services sources and reference it using the resource-name tag in your Servicefile.