Difference between revisions of "Error: Invalid attribute name"

From wikieduonline
Jump to navigation Jump to search
Line 6: Line 6:
 
  │ [[An attribute name is required after a dot]].
 
  │ [[An attribute name is required after a dot]].
 
  ╵
 
  ╵
 +
Solution:
 +
  db_subnet_group_name =  "${module.vpc.public_subnets.1}"
 +
  
 
== See also ==
 
== See also ==

Revision as of 15:48, 2 June 2022

│ Error: Invalid attribute name
│
│   on main.tf line 15, in resource "aws_db_instance" "my_mariadb_instance":
│   15:   db_subnet_group_name =  "${module.vpc.public_subnets.[1]}"
│
│ An attribute name is required after a dot.
╵
Solution:
 db_subnet_group_name =  "${module.vpc.public_subnets.1}"


See also

Advertising: