A
Size: a a a
A
DZ
N
DZ
A
S
resource "aws_security_group_rule" "rds_port" {
type = "ingress"
from_port = 30535
to_port = 30535
protocol = "tcp"
cidr_blocks = ["{$var.ip-bitbucket}"]
security_group_id = "sg-0c6b8011e0965918e"
description = "BitbucketCloud"
}
хочу чтоб айпишники которые объявлены в var.tf были добавлены в даную SG, но получаю ошибку при terraform plan:aws_security_group_rule.rds_port: "cidr_blocks.0" must contain a valid CIDR, got error parsing: invalid CIDR address: {$var.ip-bitbucket}
сам файл var.tf:variable "ip-bitbucket" {
description = "BitbucketCloud"
type = "list"
default = ["34.199.54.113/32", "34.232.25.90/32", "34.232.119.183/32"]
}
что я упускаю? проясните(S
resource "aws_security_group_rule" "rds_port" {
type = "ingress"
from_port = 30535
to_port = 30535
protocol = "tcp"
cidr_blocks = ["{$var.ip-bitbucket}"]
security_group_id = "sg-0c6b8011e0965918e"
description = "BitbucketCloud"
}
хочу чтоб айпишники которые объявлены в var.tf были добавлены в даную SG, но получаю ошибку при terraform plan:aws_security_group_rule.rds_port: "cidr_blocks.0" must contain a valid CIDR, got error parsing: invalid CIDR address: {$var.ip-bitbucket}
сам файл var.tf:variable "ip-bitbucket" {
description = "BitbucketCloud"
type = "list"
default = ["34.199.54.113/32", "34.232.25.90/32", "34.232.119.183/32"]
}
что я упускаю? проясните(DZ
S
name must be a single value, not a listresource "aws_route53_record" "dev_domains" {
zone_id = "Z2MJZT83ODMZP8"
name = "${var.dev-domains}"
type = "A"
ttl = "300"
records = ["1.1.1.1"]
}IM
name must be a single value, not a listresource "aws_route53_record" "dev_domains" {
zone_id = "Z2MJZT83ODMZP8"
name = "${var.dev-domains}"
type = "A"
ttl = "300"
records = ["1.1.1.1"]
}S
IM
S
IM
S
IM
S
IM
variable "example" {
default = ["test1", "test2", "test3"]
}
name = "${element(var.example, count.index)}"