2023-03-15 16:00:52 +00:00
|
|
|
# Copyright (c) HashiCorp, Inc.
|
2023-09-18 21:10:37 +00:00
|
|
|
# SPDX-License-Identifier: BUSL-1.1
|
2023-03-15 16:00:52 +00:00
|
|
|
|
2022-08-23 19:53:41 +00:00
|
|
|
module "autopilot_upgrade_storageconfig" {
|
|
|
|
source = "./modules/autopilot_upgrade_storageconfig"
|
|
|
|
}
|
|
|
|
|
|
|
|
module "backend_consul" {
|
2023-06-22 22:14:22 +00:00
|
|
|
source = "./modules/backend_consul"
|
2022-08-23 19:53:41 +00:00
|
|
|
|
2023-06-22 22:14:22 +00:00
|
|
|
license = var.backend_license_path == null ? null : file(abspath(var.backend_license_path))
|
|
|
|
log_level = var.backend_log_level
|
2022-08-23 19:53:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
module "backend_raft" {
|
|
|
|
source = "./modules/backend_raft"
|
|
|
|
}
|
|
|
|
|
|
|
|
module "build_crt" {
|
|
|
|
source = "./modules/build_crt"
|
|
|
|
}
|
|
|
|
|
|
|
|
module "build_local" {
|
|
|
|
source = "./modules/build_local"
|
|
|
|
}
|
|
|
|
|
2022-10-17 23:47:37 +00:00
|
|
|
module "build_artifactory" {
|
|
|
|
source = "./modules/vault_artifactory_artifact"
|
|
|
|
}
|
|
|
|
|
2022-08-23 19:53:41 +00:00
|
|
|
module "create_vpc" {
|
2023-06-22 22:14:22 +00:00
|
|
|
source = "./modules/create_vpc"
|
|
|
|
|
|
|
|
environment = "ci"
|
|
|
|
common_tags = var.tags
|
|
|
|
}
|
2022-08-23 19:53:41 +00:00
|
|
|
|
2023-06-22 22:14:22 +00:00
|
|
|
module "ec2_info" {
|
|
|
|
source = "./modules/ec2_info"
|
2022-08-23 19:53:41 +00:00
|
|
|
}
|
|
|
|
|
2022-10-04 20:08:26 +00:00
|
|
|
module "get_local_metadata" {
|
|
|
|
source = "./modules/get_local_metadata"
|
2022-08-23 19:53:41 +00:00
|
|
|
}
|
|
|
|
|
2023-01-13 16:43:26 +00:00
|
|
|
module "generate_secondary_token" {
|
|
|
|
source = "./modules/generate_secondary_token"
|
|
|
|
|
|
|
|
vault_install_dir = var.vault_install_dir
|
|
|
|
}
|
|
|
|
|
2022-08-23 19:53:41 +00:00
|
|
|
module "read_license" {
|
|
|
|
source = "./modules/read_license"
|
|
|
|
}
|
|
|
|
|
2023-09-27 16:53:12 +00:00
|
|
|
module "replication_data" {
|
|
|
|
source = "./modules/replication_data"
|
|
|
|
}
|
|
|
|
|
2023-10-26 21:36:50 +00:00
|
|
|
module "seal_key_awskms" {
|
|
|
|
source = "./modules/seal_key_awskms"
|
|
|
|
|
|
|
|
common_tags = var.tags
|
|
|
|
}
|
|
|
|
|
|
|
|
module "seal_key_shamir" {
|
|
|
|
source = "./modules/seal_key_shamir"
|
|
|
|
|
|
|
|
common_tags = var.tags
|
|
|
|
}
|
|
|
|
|
2023-01-13 16:43:26 +00:00
|
|
|
module "shutdown_node" {
|
|
|
|
source = "./modules/shutdown_node"
|
|
|
|
}
|
|
|
|
|
2023-01-20 15:25:14 +00:00
|
|
|
module "shutdown_multiple_nodes" {
|
|
|
|
source = "./modules/shutdown_multiple_nodes"
|
|
|
|
}
|
|
|
|
|
2023-10-26 21:36:50 +00:00
|
|
|
module "start_vault" {
|
|
|
|
source = "./modules/start_vault"
|
|
|
|
|
|
|
|
install_dir = var.vault_install_dir
|
|
|
|
log_level = var.vault_log_level
|
|
|
|
}
|
|
|
|
|
|
|
|
module "stop_vault" {
|
|
|
|
source = "./modules/stop_vault"
|
|
|
|
}
|
|
|
|
|
2023-06-26 22:54:39 +00:00
|
|
|
# create target instances using ec2:CreateFleet
|
2023-06-22 22:14:22 +00:00
|
|
|
module "target_ec2_fleet" {
|
|
|
|
source = "./modules/target_ec2_fleet"
|
2023-04-13 19:44:43 +00:00
|
|
|
|
2023-06-26 22:54:39 +00:00
|
|
|
common_tags = var.tags
|
|
|
|
project_name = var.project_name
|
|
|
|
ssh_keypair = var.aws_ssh_keypair_name
|
2023-04-13 19:44:43 +00:00
|
|
|
}
|
|
|
|
|
2023-06-26 22:54:39 +00:00
|
|
|
# create target instances using ec2:RunInstances
|
|
|
|
module "target_ec2_instances" {
|
|
|
|
source = "./modules/target_ec2_instances"
|
|
|
|
|
|
|
|
common_tags = var.tags
|
|
|
|
project_name = var.project_name
|
|
|
|
ssh_keypair = var.aws_ssh_keypair_name
|
|
|
|
}
|
|
|
|
|
|
|
|
# don't create instances but satisfy the module interface
|
|
|
|
module "target_ec2_shim" {
|
|
|
|
source = "./modules/target_ec2_shim"
|
|
|
|
|
|
|
|
common_tags = var.tags
|
|
|
|
project_name = var.project_name
|
|
|
|
ssh_keypair = var.aws_ssh_keypair_name
|
|
|
|
}
|
|
|
|
|
|
|
|
# create target instances using ec2:RequestSpotFleet
|
2023-04-13 19:44:43 +00:00
|
|
|
module "target_ec2_spot_fleet" {
|
|
|
|
source = "./modules/target_ec2_spot_fleet"
|
|
|
|
|
2023-06-26 22:54:39 +00:00
|
|
|
common_tags = var.tags
|
|
|
|
project_name = var.project_name
|
|
|
|
ssh_keypair = var.aws_ssh_keypair_name
|
2023-04-13 19:44:43 +00:00
|
|
|
}
|
|
|
|
|
2022-11-08 15:08:43 +00:00
|
|
|
module "vault_agent" {
|
|
|
|
source = "./modules/vault_agent"
|
|
|
|
|
|
|
|
vault_install_dir = var.vault_install_dir
|
|
|
|
vault_instance_count = var.vault_instance_count
|
|
|
|
}
|
|
|
|
|
2023-07-20 20:51:07 +00:00
|
|
|
module "vault_proxy" {
|
|
|
|
source = "./modules/vault_proxy"
|
|
|
|
|
|
|
|
vault_install_dir = var.vault_install_dir
|
|
|
|
vault_instance_count = var.vault_instance_count
|
|
|
|
}
|
|
|
|
|
2022-11-08 15:08:43 +00:00
|
|
|
module "vault_verify_agent_output" {
|
|
|
|
source = "./modules/vault_verify_agent_output"
|
|
|
|
|
|
|
|
vault_instance_count = var.vault_instance_count
|
|
|
|
}
|
|
|
|
|
2022-08-23 19:53:41 +00:00
|
|
|
module "vault_cluster" {
|
2023-04-13 19:44:43 +00:00
|
|
|
source = "./modules/vault_cluster"
|
2022-08-23 19:53:41 +00:00
|
|
|
|
2023-06-09 19:40:59 +00:00
|
|
|
install_dir = var.vault_install_dir
|
|
|
|
consul_license = var.backend_license_path == null ? null : file(abspath(var.backend_license_path))
|
2023-06-12 16:46:11 +00:00
|
|
|
log_level = var.vault_log_level
|
2022-08-23 19:53:41 +00:00
|
|
|
}
|
|
|
|
|
2023-01-13 16:43:26 +00:00
|
|
|
module "vault_get_cluster_ips" {
|
|
|
|
source = "./modules/vault_get_cluster_ips"
|
|
|
|
|
2023-09-27 16:53:12 +00:00
|
|
|
vault_install_dir = var.vault_install_dir
|
|
|
|
vault_instance_count = var.vault_instance_count
|
|
|
|
}
|
|
|
|
|
|
|
|
module "vault_raft_remove_peer" {
|
|
|
|
source = "./modules/vault_raft_remove_peer"
|
2023-01-13 16:43:26 +00:00
|
|
|
vault_install_dir = var.vault_install_dir
|
|
|
|
}
|
|
|
|
|
2023-09-27 16:53:12 +00:00
|
|
|
module "vault_setup_perf_secondary" {
|
|
|
|
source = "./modules/vault_setup_perf_secondary"
|
|
|
|
|
|
|
|
vault_install_dir = var.vault_install_dir
|
|
|
|
}
|
|
|
|
|
|
|
|
module "vault_test_ui" {
|
|
|
|
source = "./modules/vault_test_ui"
|
|
|
|
|
|
|
|
ui_run_tests = var.ui_run_tests
|
|
|
|
}
|
|
|
|
|
2023-01-13 16:43:26 +00:00
|
|
|
module "vault_unseal_nodes" {
|
|
|
|
source = "./modules/vault_unseal_nodes"
|
|
|
|
|
|
|
|
vault_install_dir = var.vault_install_dir
|
|
|
|
vault_instance_count = var.vault_instance_count
|
|
|
|
}
|
|
|
|
|
2022-08-23 19:53:41 +00:00
|
|
|
module "vault_upgrade" {
|
|
|
|
source = "./modules/vault_upgrade"
|
|
|
|
|
|
|
|
vault_install_dir = var.vault_install_dir
|
|
|
|
vault_instance_count = var.vault_instance_count
|
|
|
|
}
|
|
|
|
|
2023-09-27 16:53:12 +00:00
|
|
|
|
2022-08-23 19:53:41 +00:00
|
|
|
module "vault_verify_autopilot" {
|
|
|
|
source = "./modules/vault_verify_autopilot"
|
|
|
|
|
|
|
|
vault_autopilot_upgrade_status = "await-server-removal"
|
|
|
|
vault_install_dir = var.vault_install_dir
|
|
|
|
vault_instance_count = var.vault_instance_count
|
|
|
|
}
|
|
|
|
|
|
|
|
module "vault_verify_raft_auto_join_voter" {
|
|
|
|
source = "./modules/vault_verify_raft_auto_join_voter"
|
|
|
|
|
|
|
|
vault_install_dir = var.vault_install_dir
|
|
|
|
vault_instance_count = var.vault_instance_count
|
|
|
|
}
|
|
|
|
|
2022-12-16 21:51:34 +00:00
|
|
|
module "vault_verify_undo_logs" {
|
|
|
|
source = "./modules/vault_verify_undo_logs"
|
|
|
|
|
|
|
|
vault_install_dir = var.vault_install_dir
|
|
|
|
vault_instance_count = var.vault_instance_count
|
|
|
|
}
|
|
|
|
|
2022-11-16 19:23:58 +00:00
|
|
|
module "vault_verify_replication" {
|
2023-01-13 16:43:26 +00:00
|
|
|
source = "./modules/vault_verify_replication"
|
2022-11-16 19:23:58 +00:00
|
|
|
|
|
|
|
vault_install_dir = var.vault_install_dir
|
|
|
|
vault_instance_count = var.vault_instance_count
|
|
|
|
}
|
|
|
|
|
|
|
|
module "vault_verify_ui" {
|
2023-01-13 16:43:26 +00:00
|
|
|
source = "./modules/vault_verify_ui"
|
2022-11-16 19:23:58 +00:00
|
|
|
|
|
|
|
vault_instance_count = var.vault_instance_count
|
|
|
|
}
|
|
|
|
|
2022-08-23 19:53:41 +00:00
|
|
|
module "vault_verify_unsealed" {
|
|
|
|
source = "./modules/vault_verify_unsealed"
|
|
|
|
|
|
|
|
vault_install_dir = var.vault_install_dir
|
|
|
|
vault_instance_count = var.vault_instance_count
|
|
|
|
}
|
|
|
|
|
2023-01-13 16:43:26 +00:00
|
|
|
module "vault_setup_perf_primary" {
|
|
|
|
source = "./modules/vault_setup_perf_primary"
|
|
|
|
|
|
|
|
vault_install_dir = var.vault_install_dir
|
|
|
|
}
|
|
|
|
|
|
|
|
module "vault_verify_read_data" {
|
|
|
|
source = "./modules/vault_verify_read_data"
|
|
|
|
|
|
|
|
vault_install_dir = var.vault_install_dir
|
|
|
|
vault_instance_count = var.vault_instance_count
|
|
|
|
}
|
|
|
|
|
|
|
|
module "vault_verify_performance_replication" {
|
|
|
|
source = "./modules/vault_verify_performance_replication"
|
|
|
|
|
|
|
|
vault_install_dir = var.vault_install_dir
|
|
|
|
}
|
|
|
|
|
2022-08-23 19:53:41 +00:00
|
|
|
module "vault_verify_version" {
|
|
|
|
source = "./modules/vault_verify_version"
|
|
|
|
|
|
|
|
vault_install_dir = var.vault_install_dir
|
|
|
|
vault_instance_count = var.vault_instance_count
|
|
|
|
}
|
2022-11-16 19:23:58 +00:00
|
|
|
|
2023-01-13 16:43:26 +00:00
|
|
|
module "vault_verify_write_data" {
|
|
|
|
source = "./modules/vault_verify_write_data"
|
2022-11-16 19:23:58 +00:00
|
|
|
|
|
|
|
vault_install_dir = var.vault_install_dir
|
|
|
|
vault_instance_count = var.vault_instance_count
|
|
|
|
}
|
2023-01-20 15:25:14 +00:00
|
|
|
|
2023-09-27 16:53:12 +00:00
|
|
|
module "vault_wait_for_leader" {
|
|
|
|
source = "./modules/vault_wait_for_leader"
|
2023-02-03 14:55:06 +00:00
|
|
|
|
2023-09-27 16:53:12 +00:00
|
|
|
vault_install_dir = var.vault_install_dir
|
|
|
|
vault_instance_count = var.vault_instance_count
|
2023-02-03 14:55:06 +00:00
|
|
|
}
|
2023-10-26 21:36:50 +00:00
|
|
|
|
|
|
|
module "vault_wait_for_seal_rewrap" {
|
|
|
|
source = "./modules/vault_wait_for_seal_rewrap"
|
|
|
|
|
|
|
|
vault_install_dir = var.vault_install_dir
|
|
|
|
vault_instance_count = var.vault_instance_count
|
|
|
|
}
|
2023-10-31 21:34:22 +00:00
|
|
|
|
|
|
|
module "verify_seal_type" {
|
|
|
|
source = "./modules/verify_seal_type"
|
|
|
|
|
|
|
|
vault_install_dir = var.vault_install_dir
|
|
|
|
vault_instance_count = var.vault_instance_count
|
|
|
|
}
|