DG
Size: a a a
DG
A
A
IM
IM
A
IM
DK
Error: Inconsistent conditional result types
on ../../terraform/datadog-agent/main.tf line 35, in locals:
35: logConfiguration = var.cloudwatch_log_group == "" ? {} : {
36: logDriver = "awslogs",
37: options = {
38: awslogs-group = var.cloudwatch_log_group
39: awslogs-region = data.aws_region.current.name
40: awslogs-stream-prefix = var.name
41: }
42: }
The true and false result expressions must have consistent types. The given
expressions are object and object, respectively.
DK
s
YF
resource "aws_route53_record" "a_record" {
count = var.instances_count
name = join("", var.route53_dns_names)
records = element(module.this_eip.public_ips, count.index)
type = "A"
ttl = 60
zone_id = var.route53_zone_id
}
module.this_eip.public_ips п
еречислено 2 IP адреса.Error in function call in resource "aws_route53_record" "a_record":
records = element(module.this_eip.public_ips, count.index)
|----------------
| count.index is 1
| module.this_eip.public_ips is tuple with 2 elements
Inappropriate value for attribute "records": set of string required.
A
A
multivalue answer
?A
DZ
resource "aws_route53_record" "a_record" {
count = var.instances_count
name = join("", var.route53_dns_names)
records = element(module.this_eip.public_ips, count.index)
type = "A"
ttl = 60
zone_id = var.route53_zone_id
}
module.this_eip.public_ips п
еречислено 2 IP адреса.Error in function call in resource "aws_route53_record" "a_record":
records = element(module.this_eip.public_ips, count.index)
|----------------
| count.index is 1
| module.this_eip.public_ips is tuple with 2 elements
Inappropriate value for attribute "records": set of string required.
records = module.this_eip.public_ips
DZ
DZ
A
As part of implementing a new decentralized namespace for providers, Terraform now requires an explicit source specification for any provider that is not in the "hashicorp" namespace in the main public registry. (More details will be added about this prior to release, including links to upgrade steps.) [GH-24477]
A