test(e2e): Add infra for ssh certificate injection test (#3532)
This commit is contained in:
1 parent
5e78fc72c5
commit
f88d3892cb
7 files changed
+151
-1
No files matched your search
@@ -90,6 +90,11 @@ variable "target_port" {
|
||||
type = string
|
||||
default = ""
|
||||
}
|
||||
variable "target_ca_key" {
|
||||
description = "CA Private Key (base64 encoded)"
|
||||
type = string
|
||||
default = ""
|
||||
}
|
||||
variable "vault_addr" {
|
||||
description = "External network address of Vault. Will be converted to a URL below"
|
||||
type = string
|
||||
@@ -202,6 +207,7 @@ resource "enos_local_exec" "run_e2e_test" {
|
||||
E2E_SSH_USER = var.target_user,
|
||||
E2E_SSH_PORT = var.target_port,
|
||||
E2E_SSH_KEY_PATH = local.aws_ssh_private_key_path,
|
||||
E2E_SSH_CA_KEY = var.target_ca_key,
|
||||
VAULT_ADDR = local.vault_addr,
|
||||
VAULT_ADDR_INTERNAL = local.vault_addr_internal,
|
||||
VAULT_TOKEN = var.vault_root_token,
|
||||
|
||||
@@ -20,6 +20,7 @@ docker run \
|
||||
-e "E2E_TARGET_IP=$E2E_TARGET_IP" \
|
||||
-e "E2E_SSH_USER=$E2E_SSH_USER" \
|
||||
-e "E2E_SSH_PORT=$E2E_SSH_PORT" \
|
||||
-e "E2E_SSH_CA_KEY=$E2E_SSH_CA_KEY" \
|
||||
-e "E2E_SSH_KEY_PATH=/keys/target.pem" \
|
||||
-e "VAULT_ADDR=$VAULT_ADDR_INTERNAL" \
|
||||
-e "VAULT_TOKEN=$VAULT_TOKEN" \
|
||||
|
||||
Reference in new issue
Block a user