Error: Incorrect attribute value type
Jump to navigation
Jump to search
│ Error: Incorrect attribute value type │ .../... │ │ Inappropriate value for attribute "vars": element "s3_bucket_name": string required. ╵
╷ │ Error: Incorrect attribute value type │ │ on main.tf line 15, in resource "aws_db_instance" "my_mariadb_instance": │ 15: db_subnet_group_name = "${module.vpc.public_subnets}" │ ├──────────────── │ │ module.vpc.public_subnets is tuple with 3 elements │ │ Inappropriate value for attribute "db_subnet_group_name": string required. ╵
╷ │ Error: Incorrect attribute value type │ │ on route53.tf line 7, in resource "aws_route53_record" "www": │ 7: records = "10.10.10.10" │ │ Inappropriate value for attribute "records": set of string required. ╵
│ Error: Incorrect attribute value type │ │ on ec2.tf line 20, in resource "aws_instance" "myUbuntuMicroInstance": │ 20: associate_public_ip_address = "yes" │ │ Inappropriate value for attribute "associate_public_ip_address": a bool is required.
Related[edit]
key_name
See also[edit]
terraform apply
[-auto-approve
|-refresh-only, -destroy | --help ]
, Terraform examples,Still creating...
, Terraform apply examples with errorsterraform plan
: [-refresh-only | -lock=false
|-target
|-var-file
|will be created
|--help
], Terraform plan errors, Terraform plan examples, Terraform plan execution errors, (known after apply)
Advertising: