Difference between revisions of "Error: Invalid reference"
Jump to navigation
Jump to search
(Created page with " == See also == * {{terraform plan}} Category:Terraform") |
|||
(11 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | ╷ | ||
+ | │ Error: Invalid reference | ||
+ | │ | ||
+ | │ on .terraform/modules/paht/to/your/module.tf line 5, in resource "[[aws_db_subnet_group]]" "this": | ||
+ | │ 5: name = your_name | ||
+ | │ | ||
+ | │ A reference to a resource type must be followed by at least one attribute access, specifying the resource name. | ||
+ | |||
+ | ╷ | ||
+ | │ Error: Invalid reference | ||
+ | │ | ||
+ | │ on main.tf line 14, in resource "[[aws_db_instance]]" "my_mariadb_instance": | ||
+ | │ 14: [[db_subnet_group_name]] = subnet-0526dd2e6xxxxx | ||
+ | │ | ||
+ | │ A reference to a resource type must be followed by at least one attribute access, [[specifying the resource name]]. | ||
+ | ╵ | ||
+ | |||
+ | ╷ | ||
+ | │ Error: Invalid reference | ||
+ | │ | ||
+ | │ on main.tf line 29, in module "vpc": | ||
+ | │ 29: create_database_subnet_group = my_yes_wrong_anwser | ||
+ | │ | ||
+ | │ A reference to a resource type must be followed by at least one attribute access, specifying the resource name. | ||
+ | ╵ | ||
+ | Solution: make your that boolean resources such as [[create_database_subnet_group]] use: true or false | ||
+ | |||
+ | == Related == | ||
+ | * <code>[[Error: Reference to undeclared resource]]</code> | ||
+ | * <code>[[key_name]]</code> | ||
+ | * <code>[[Error: Missing resource instance key]]</code> | ||
+ | * <code>[0]</code> | ||
+ | * <code>[[count]]</code> | ||
== See also == | == See also == |
Latest revision as of 09:19, 20 April 2023
╷ │ Error: Invalid reference │ │ on .terraform/modules/paht/to/your/module.tf line 5, in resource "aws_db_subnet_group" "this": │ 5: name = your_name │ │ A reference to a resource type must be followed by at least one attribute access, specifying the resource name.
╷ │ Error: Invalid reference │ │ on main.tf line 14, in resource "aws_db_instance" "my_mariadb_instance": │ 14: db_subnet_group_name = subnet-0526dd2e6xxxxx │ │ A reference to a resource type must be followed by at least one attribute access, specifying the resource name. ╵
╷ │ Error: Invalid reference │ │ on main.tf line 29, in module "vpc": │ 29: create_database_subnet_group = my_yes_wrong_anwser │ │ A reference to a resource type must be followed by at least one attribute access, specifying the resource name. ╵ Solution: make your that boolean resources such as create_database_subnet_group use: true or false
Related[edit]
See also[edit]
Advertising: