Difference between revisions of "Error: Unsupported attribute"

From wikieduonline
Jump to navigation Jump to search
Line 20: Line 20:
 
  │
 
  │
 
  │ [[This object does not have an attribute named]] "aws_db_subnet_group".
 
  │ [[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)]].
 
  ╵
 
  ╵
  

Revision as of 15:20, 2 June 2022

╷
│ 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).
╵

See also

Advertising: