Open hashibot opened 7 years ago
5 yrs later - and still unresolved?
A big no.
Deep sigh, needed this. data "aws_instances" "test" { instance_tags = { Role = "HardWorker" }
filter { name = "instance.group-id" values = ["sg-12345678"] }
instance_state_names = ["running", "stopped"] } Is there a way to use the filter to narrow things down, I gave the instances a prefix from the launch template
This issue was originally opened by @coolgooze as hashicorp/terraform#11713. It was migrated here as part of the provider split. The original body of the issue is below.
ASG resource "aws_autoscaling_group" "REDIS_ASG" { name = "${var.environment}-REDIS_ASG" launch_configuration = "${aws_launch_configuration.redis_launch_conf.name}"
availability_zones = ["us-west-2a", "us-west-2b", "us-west-2c"]
}
i am trying to create a A Record resource "aws_route53_record" "redis" { zone_id = "${data.aws_route53_zone.dns.zone_id}" name = "redis-${var.environment}.${data.aws_route53_zone.dns.name}" type = "A" ttl = "60" records = ["${aws_autoscaling_group.REDIS_ASG.private_ip}"] }
Output-