Hi,
I have to add a tag in Azure Resource while deploying it through Terraform, this tag should automatically fetch username/email who executing the code. Is there anyway we can refer this in Terraform code like some function?
I want to add CreatedBy tag which should automatically put username in Azure-
tags = {
Business = var.business
Organization = var.company
Environment = var.env
CreatedOn = formatdate("YYYY-MM-DD hh:mm ZZZ", timestamp())
**CreatedBy = <>**
}
}