Error: Error applying plan:
1 error(s) occurred:
* module.rtr_nexus.aws_elb.my_elb: 1 error(s) occurred:
* aws_elb.nexus_elb: InvalidConfigurationRequest: Default VPC not found
status code: 409, request id: 7ad595ce-dba3-11e8-88ba-c3211a9a6526
resource "aws_elb" "my_elb" {
name = "terraform-asg"
availability_zones = ["${data.aws_availability_zones.all.names}"]
security_groups = ["${aws_security_group.elb.id}"]
listener {
lb_port = 80
lb_protocol = "http"
instance_port = "${var.elb_server_port}"
instance_protocol = "http"
}
health_check {
healthy_threshold = 2
unhealthy_threshold = 2
timeout = 3
interval = 30
target = "HTTP:${var.elb_server_port}/"
}
}
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Terraform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-too...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/6787004e-2205-422a-9510-8b78ac4a109f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Error: Error applying plan:
1 error(s) occurred:
* aws_elb.nexus_elb: 1 error(s) occurred:
* aws_elb.my_elb: ValidationError: Only one of SubnetIds or AvailabilityZones may be specified
status code: 400, request id: 8af03d68-dbaf-11e8-8e30-f1e0485f6068
resource "aws_elb" "my_elb" {
name = "terraform-asg-example"
availability_zones = ["${data.aws_availability_zones.all.names}"]
subnets = ["${data.aws_subnet_ids.public.ids}"]
listener {
lb_port = "80"
lb_protocol = "http"
instance_port = "80"
instance_protocol = "http"
}
health_check {
healthy_threshold = 2
unhealthy_threshold = 2
timeout = 3
interval = 30
target = "HTTP:80/"
}
}
data "aws_availability_zones" "all" {}
data "aws_subnet_ids" "public" {
vpc_id = "${var.vpc_id}"
tags = { Visibility = "Public" }
}