Stress testing(DOS) setup via Apache Benchmark
Terraform 1.6.5
Ansible 2.15.6
Python 3.11.2
Debian 6.1.0-14 6.1.64-1
- Download terraform from hashicorp and
export PATH=$PATH:/path/to/terraform
- Create an authorized key
yc iam key create \
--service-account-id <service_account_ID> \
--folder-name <name_of_folder_with_service_account> \
--output key.json
- Add creds to environment
export YC_TOKEN=$(yc iam create-token)
export YC_CLOUD_ID=$(yc config get cloud-id)
export YC_FOLDER_ID=$(yc config get folder-id)
- Create terraform config file
nano ~/.terraformrc
provider_installation {
network_mirror {
url = "https://terraform-mirror.yandexcloud.net/"
include = ["registry.terraform.io/*/*"]
}
direct {
exclude = ["registry.terraform.io/*/*"]
}
}
- Download the Terraform config and the Terraform mirror config from the Terraform account settings
- Rename terraform.rc to .terraformrc and copy it to the users home directory (~/)
- Copy vkcs_provider.tf to the working directory
Installation
python3 -m pip install --user ansible