Difference between revisions of "Error: Invalid character"

From wikieduonline
Jump to navigation Jump to search
(Created page with " ╷ │ Error: Invalid character │ │ on main.tf line 15, in resource "aws_db_instance" "my_mariadb_instance": │ 15: db_subnet_group_name = ${module.vpc.data...")
 
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
  │
 
  │
 
  │  on main.tf line 15, in resource "aws_db_instance" "my_mariadb_instance":
 
  │  on main.tf line 15, in resource "aws_db_instance" "my_mariadb_instance":
  │  15:  db_subnet_group_name =  ${module.vpc.database_subnet_group}
+
  │  15:  db_subnet_group_name =  ${[[module.vpc.database_subnet_group]]}
 
  │
 
  │
  │ This character is not used within the language.
+
  │ [[This character is not used within the language]].
 
  ╵
 
  ╵
 +
Solution: make sure to use "${module.vpc.database_subnet_group}" between " "
  
 
== See also ==
 
== See also ==

Latest revision as of 15:33, 2 June 2022

╷
│ Error: Invalid character
│
│   on main.tf line 15, in resource "aws_db_instance" "my_mariadb_instance":
│   15:   db_subnet_group_name =  ${module.vpc.database_subnet_group}
│
│ This character is not used within the language.
╵
Solution: make sure to use "${module.vpc.database_subnet_group}" between " "

See also[edit]

Advertising: