chore(e2e): Add instance ips to output (#4913)
This commit is contained in:
1 parent
e390afe45d
commit
6e5fd945a3
6 files changed
+57
-13
No files matched your search
@@ -196,7 +196,7 @@ resource "enos_file" "worker_config" {
|
||||
id = each.value
|
||||
kms_key_id = data.aws_kms_key.kms_key.id,
|
||||
controller_ips = jsonencode(aws_instance.controller.*.private_ip),
|
||||
public_addr = aws_instance.worker.0.public_ip
|
||||
public_addr = aws_instance.worker[tonumber(each.value)].public_ip
|
||||
region = var.aws_region
|
||||
type = jsonencode(var.worker_type_tags)
|
||||
recording_storage_path = var.recording_storage_path
|
||||
|
||||
@@ -93,6 +93,10 @@ resource "enos_remote_exec" "wait" {
|
||||
}
|
||||
}
|
||||
|
||||
output "target_ips" {
|
||||
output "target_private_ips" {
|
||||
value = aws_instance.target.*.private_ip
|
||||
}
|
||||
|
||||
output "target_public_ips" {
|
||||
value = aws_instance.target.*.public_ip
|
||||
}
|
||||
Reference in new issue
Block a user