Skip to content

Commit

Permalink
chore(e2e): Update vault addresses in AWS scenarios (#5395)
Browse files Browse the repository at this point in the history
  • Loading branch information
moduli authored Jan 2, 2025
1 parent 868d7b8 commit 3d0f667
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion enos/enos-scenario-e2e-aws-base-with-vault.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ scenario "e2e_aws_base_with_vault" {
target_address = step.create_target.target_private_ips[0]
target_user = "ubuntu"
target_port = "22"
vault_addr = step.create_vault_cluster.instance_public_ips[0]
vault_addr = step.create_vault_cluster.instance_addresses[0]
vault_addr_internal = step.create_vault_cluster.instance_addresses[0]
vault_root_token = step.create_vault_cluster.vault_root_token
aws_region = var.aws_region
max_page_size = step.create_boundary_cluster.max_page_size
Expand Down
3 changes: 2 additions & 1 deletion enos/enos-scenario-e2e-ui-aws.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ scenario "e2e_ui_aws" {
target_address = step.create_targets_with_tag.target_private_ips[0]
target_user = "ubuntu"
target_port = "22"
vault_addr = step.create_vault_cluster.instance_public_ips[0]
vault_addr = step.create_vault_cluster.instance_addresses[0]
vault_addr_internal = step.create_vault_cluster.instance_addresses[0]
vault_root_token = step.create_vault_cluster.vault_root_token
aws_access_key_id = step.iam_setup.access_key_id
aws_secret_access_key = step.iam_setup.secret_access_key
Expand Down
5 changes: 5 additions & 0 deletions enos/modules/aws_vault/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ output "instance_private_ips" {
value = [for instance in aws_instance.vault_instance : instance.private_ip]
}

output "instance_addresses" {
description = "Addresses of Vault instances"
value = [for instance in aws_instance.vault_instance : "http://${instance.public_ip}:8200"]
}

output "key_id" {
value = data.aws_kms_key.kms_key.id
}
Expand Down

0 comments on commit 3d0f667

Please sign in to comment.