ce: chore(e2e): Add support for downstream workers (#6478)
(cherry picked from commit 77a682058ee8c7f0c27f017c61fb444d4dee40dd)
This commit is contained in:
1 parent
3f1dd3ab2a
commit
b07883e8aa
15 files changed
+132
-31
No files matched your search
@@ -6,6 +6,11 @@ output "worker_ip" {
|
||||
value = var.ip_version == "6" ? format("[%s]", aws_instance.worker.ipv6_addresses[0]) : aws_instance.worker.public_ip
|
||||
}
|
||||
|
||||
output "worker_upstream_ips" {
|
||||
description = "List of ips that workers can use to reach upstream workers"
|
||||
value = var.ip_version == "4" ? [for ip in aws_instance.worker.*.private_ip : "${ip}:9202"] : [for ip in flatten(aws_instance.worker.*.ipv6_addresses) : "[${ip}]:9201"]
|
||||
}
|
||||
|
||||
output "worker_tags" {
|
||||
description = "The tags used in the worker's configuration"
|
||||
value = var.worker_type_tags
|
||||
@@ -13,7 +18,7 @@ output "worker_tags" {
|
||||
|
||||
output "subnet_ids" {
|
||||
description = "The ID of the subnet this worker resides in"
|
||||
value = [aws_subnet.default.id]
|
||||
value = length(var.subnet_ids) == 0 ? [aws_subnet.default[0].id] : var.subnet_ids
|
||||
}
|
||||
|
||||
output "pet_id" {
|
||||
@@ -28,10 +33,10 @@ output "role_arn" {
|
||||
|
||||
output "worker_cidr" {
|
||||
description = "The subnet of the isolated worker"
|
||||
value = var.ip_version == "6" ? [] : [aws_subnet.default.cidr_block]
|
||||
value = var.ip_version == "6" ? [] : length(var.subnet_ids) == 0 ? [aws_subnet.default[0].cidr_block] : []
|
||||
}
|
||||
|
||||
output "worker_ipv6_cidr" {
|
||||
description = "The ipv6 subnet of the isolated worker"
|
||||
value = var.ip_version == "4" ? [] : [aws_subnet.default.ipv6_cidr_block]
|
||||
value = var.ip_version == "4" ? [] : length(var.subnet_ids) == 0 ? [aws_subnet.default[0].ipv6_cidr_block] : []
|
||||
}
|
||||
Reference in new issue
Block a user