Получаю эту ошибку при создании стека с помощью terraform и ниже кода
Ошибка: ошибка загрузки /root/terraform-stack-creation/main.tf: позиция 2:10: за ресурсом должен следоватьровно две строки, тип и имя
resource "aws_opsworks_stack" "stack" {
name = "${var.name}"
region = "${var.region}"
service_role_arn = "${var.service_role_arn}"
default_instance_profile_arn = "${var.instance_profile_arn}"
default_os = "Amazon Linux 2018.03"
configuration_manager_version = "11.10"
manage_berkshelf = false
default_root_device_type = "ebs"
use_opsworks_security_groups = false
vpc_id = "vpc-******************"
default_subnet_id = "subnet-*****************"
custom_json = "{}"
}
variable "name" {
type = "string"
description = "Name (Your required stack name)"
}
variable "region" {
type = list(string)
default = ["us-west-1a"]
description = "us-east-1,ap-south-1,ap-southeast-2,eu-central-1 (Give your region)"
}
variable "service_role_arn" {
type = list(string)
default = ["*********************"]
description = "Default IAM role"
}
variable "default_instance_profile_arn"{
type = list(string)
default = ["*************************"]
description = "Default IAM instance profile"
}
variable "default_availability_zone" {
type = "string"
description = "Give your availabity zone"
}