Skip to content

TrueBad0ur/StressTester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StressTester

Stress testing(DOS) setup via Apache Benchmark

Versions

Terraform 1.6.5
Ansible 2.15.6
Python 3.11.2
Debian 6.1.0-14 6.1.64-1

Terraform

Yandex

Official manual

  1. Download terraform from hashicorp and export PATH=$PATH:/path/to/terraform
  2. 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
  1. 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)
  1. 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/*/*"]
  }
}

VK

Official manual

  1. Download the Terraform config and the Terraform mirror config from the Terraform account settings
  2. Rename terraform.rc to .terraformrc and copy it to the users home directory (~/)
  3. Copy vkcs_provider.tf to the working directory

Ansible

Installation

python3 -m pip install --user ansible