Difference between revisions of "Error: Unsupported attribute"
Jump to navigation
Jump to search
(11 intermediate revisions by 3 users not shown) | |||
Line 11: | Line 11: | ||
╵ | ╵ | ||
+ | ╷ | ||
+ | │ Error: Unsupported attribute | ||
+ | │ | ||
+ | │ on main.tf line 16, in resource "aws_db_instance" "my_mariadb_instance": | ||
+ | │ 16: db_subnet_group_name = "${module.vpc.aws_db_subnet_group}" | ||
+ | │ ├──────────────── | ||
+ | │ │ module.vpc is a object, known only after apply | ||
+ | │ | ||
+ | │ [[This object does not have an attribute named]] "aws_db_subnet_group". | ||
+ | ╵ | ||
+ | |||
+ | ╷ | ||
+ | │ Error: Unsupported attribute | ||
+ | │ | ||
+ | │ on main.tf line 15, in resource "aws_db_instance" "my_mariadb_instance": | ||
+ | │ 15: db_subnet_group_name = module.vpc.database_subnet_group.this | ||
+ | │ ├──────────────── | ||
+ | │ │ module.vpc.database_subnet_group is "" | ||
+ | │ | ||
+ | │ [[Can't access attributes on a primitive-typed value (string)]]. | ||
+ | ╵ | ||
+ | |||
+ | |||
+ | ╷ | ||
+ | │ Error: Unsupported attribute | ||
+ | │ | ||
+ | │ on [[outputs.tf]] line 2, in output "xxxxxx": | ||
+ | │ 2: value = module.xxxxxx.rds_address | ||
+ | │ ├──────────────── | ||
+ | │ │ module.xxxxxxxx is a list of object | ||
+ | │ | ||
+ | │ Can't access attributes on a list of objects. Did you mean to access | ||
+ | │ attribute "[[rds_address]]" for a specific element of the list, or across all | ||
+ | │ elements of the list? | ||
+ | ╵ | ||
+ | |||
+ | │ Error: Unsupported attribute | ||
+ | │ | ||
+ | │ on [[locals.tf]] line 12, in locals: | ||
+ | │ 12: your_app_external_https_listener_arn = data.terraform_remote_state.load_balancing.outputs.your_app_external_https_listener_arn | ||
+ | │ ├──────────────── | ||
+ | │ │ data.terraform_remote_state.load_balancing.outputs [[is object with 2 attributes]] | ||
+ | │ | ||
+ | │ This object does not have an attribute named | ||
+ | │ "your_app_external_https_listener_arn". | ||
+ | ╵ | ||
+ | |||
+ | |||
+ | |||
+ | ╷ | ||
+ | │ Error: Unsupported attribute | ||
+ | │ | ||
+ | │ on locals.tf line 9, in locals: | ||
+ | │ 9: your_db_password = data.terraform_remote_state.rds.outputs.your_db_password | ||
+ | │ ├──────────────── | ||
+ | │ │ data.[[terraform_remote_state]].rds.outputs is object with 6 attributes | ||
+ | │ | ||
+ | │ This object does not have an attribute named "your_db_password". | ||
+ | ╵ | ||
+ | |||
+ | |||
+ | == Related == | ||
+ | * [[Terragrunt]]: <code>[[ERRO]][0000] Error: Unsupported attribute</code> | ||
+ | * <code>[[terragrunt terragrunt-info]]</code> | ||
+ | * [[Terraform modules]] | ||
+ | * <code>[[locals.tf]]</code> | ||
== See also == | == See also == |
Latest revision as of 15:05, 25 April 2023
╷ │ Error: Unsupported attribute │ │ on main.tf line 15, in resource "aws_db_instance" "my_mariadb_instance": │ 15: db_subnet_group_name = module.vpc.my-vpc-name.database_subnet_group │ ├──────────────── │ │ module.vpc is a object, known only after apply │ │ This object does not have an attribute named "my-vpc-name". ╵
╷ │ Error: Unsupported attribute │ │ on main.tf line 16, in resource "aws_db_instance" "my_mariadb_instance": │ 16: db_subnet_group_name = "${module.vpc.aws_db_subnet_group}" │ ├──────────────── │ │ module.vpc is a object, known only after apply │ │ This object does not have an attribute named "aws_db_subnet_group". ╵
╷ │ Error: Unsupported attribute │ │ on main.tf line 15, in resource "aws_db_instance" "my_mariadb_instance": │ 15: db_subnet_group_name = module.vpc.database_subnet_group.this │ ├──────────────── │ │ module.vpc.database_subnet_group is "" │ │ Can't access attributes on a primitive-typed value (string). ╵
╷ │ Error: Unsupported attribute │ │ on outputs.tf line 2, in output "xxxxxx": │ 2: value = module.xxxxxx.rds_address │ ├──────────────── │ │ module.xxxxxxxx is a list of object │ │ Can't access attributes on a list of objects. Did you mean to access │ attribute "rds_address" for a specific element of the list, or across all │ elements of the list? ╵
│ Error: Unsupported attribute │ │ on locals.tf line 12, in locals: │ 12: your_app_external_https_listener_arn = data.terraform_remote_state.load_balancing.outputs.your_app_external_https_listener_arn │ ├──────────────── │ │ data.terraform_remote_state.load_balancing.outputs is object with 2 attributes │ │ This object does not have an attribute named │ "your_app_external_https_listener_arn". ╵
╷ │ Error: Unsupported attribute │ │ on locals.tf line 9, in locals: │ 9: your_db_password = data.terraform_remote_state.rds.outputs.your_db_password │ ├──────────────── │ │ data.terraform_remote_state.rds.outputs is object with 6 attributes │ │ This object does not have an attribute named "your_db_password". ╵
Related[edit]
- Terragrunt:
ERRO[0000] Error: Unsupported attribute
terragrunt terragrunt-info
- Terraform modules
locals.tf
See also[edit]
Advertising: