Description
Hi,
While working with opslevel, teams and aliases, some problems we are trying to solve right now would be solved (or it would help significantly) if we had option to not have aliase as a list but as map.
This article actually summed it up quite well: https://www.opslevel.com/blog/service-aliases/
And even when you do settle on a name, a microservice can often pick up a number of “nicknames” as well. Maybe your Terraform code refers to your service one way, your deployment system another way, and your AWS tags a third way. We don’t want these nicknames causing confusion or slowing you down.
For exactly this use case it would be great if we could have aliases for example as this (in this example for services):
aliases = {
aws = "cart"
k8s = "cart_service"
terraform = "shopping_cart"
}
In any kind of code, terraform included, I could then get this aliases
map and find aliases for specific purpose. For example I could in terraform lookup alias for k8s label and use that in helm chart. Or in AWS Tag Policy I could get list of all services and their aliases with aws
and automatically add it into Tag Policy.
With teams I could have short name for k8s labels or aws tags while keeping long and human readable format of the team in opslevel. Now I can have the alias in aliases but I don't know which one is the one I want to pick and use and validate against.
Now I can't really know which aliases from the list is the one I want.
There might be better way how to do this, not with a map (maybe tags for aliases?).