Difference between revisions of "Error: Invalid attribute name"
Jump to navigation
Jump to search
(Created page with " │ Error: Invalid attribute name │ │ on main.tf line 15, in resource "aws_db_instance" "my_mariadb_instance": │ 15: db_subnet_group_name = "${module.vpc.publ...") |
|||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
│ Error: Invalid attribute name | │ Error: Invalid attribute name | ||
│ | │ | ||
− | │ 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.public_subnets.[1]}" | + | │ 15: [[db_subnet_group_name]] = "${module.vpc.public_subnets.[1]}" |
│ | │ | ||
− | │ 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 == | ||
* {{terraform plan}} | * {{terraform plan}} | ||
+ | |||
+ | [[Category:Terraform]] |
Latest revision as of 06:50, 30 January 2023
│ 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[edit]
Advertising: