Repo that generates large state in Terraform. Option A. Code creates "random_pets"+"random_string" resources and 3 counters that can be changed to adjust size and potential CPU load of plan/apply.
Initial purpose was to test the modes of execution in TFE
-
Clone the repo
-
There are 3 main variables in code that can be adjusted to suit your tests :
- string_length - length of the string to be generated
- pet_words - count of words used in pet name
- pets_count - amount of pet resoruce and strings to generate, be aware that
end result be doubled. E.g. if you set it to 1000 will have 1000
random_pets
and 1000random_string
-
Run plan/apply
Sub-folder examples contains some reports of using the code with screenshots and logs.