I got some problem to provision with tags on Azure database for PostgreSQL services, My code be like
module "postgresql" {
source = "./modules/postgresql"
service = var.service
.
.
.
tags = { test = "test" }
And error happend
53: tags = {
An argument named "tags" is not expected here.
Why always happened like this, Actually in the Resource_Group module has tags but It doesn't error at all , I'm kinda confused about this Does anyone knows about this please help me and Thank you for your kind help
As the error stated: "An argument named "tags" is not expected here.", you should define the variable
tagsin your child module when you're calling a child module because most of the arguments correspond to input variables defined by the module. Alternatively, if the resources does not support tags arguments, you can not usetagsunder that resource.For example, you will have input variable
tagsin your modules configuration file if the resources supporttags.