terraform init -reconfigure -backend-config="backend-test.conf"
terraform validate
terraform plan -target=azurerm_chaos_studio_target.aks_target -out=target.tfplan
terraform apply target.tfplan
terraform plan -target=azurerm_chaos_studio_experiment.pod_failure -target=azurerm_role_assignment.chaos_pod_failure_aks -target=azurerm_role_assignment.chaos_pod_failure_contributor -out=pod-failure.tfplan
terraform apply pod-failure.tfplan
terraform plan -target=azurerm_chaos_studio_experiment.cpu_stress -target=azurerm_role_assignment.chaos_cpu_stress_aks -target=azurerm_role_assignment.chaos_cpu_stress_contributor -out=cpu-stress.tfplan
terraform apply cpu-stress.tfplan
terraform plan -target=azurerm_chaos_studio_experiment.memory_stress -target=azurerm_role_assignment.chaos_memory_stress_aks -target=azurerm_role_assignment.chaos_memory_stress_contributor -out=memory-stress.tfplan
terraform apply memory-stress.tfplan
terraform plan -target=azurerm_chaos_studio_experiment.network_delay -target=azurerm_role_assignment.chaos_network_delay_aks -target=azurerm_role_assignment.chaos_network_delay_contributor -out=network-delay.tfplan
terraform apply network-delay.tfplan
terraform state list | findstr chaos
terraform output chaos_experiments_principal_ids
az rest --method post --url "https://management.azure.com/subscriptions/d7d7369b-a14f-43bc-a564-b4a077d170a9/resourceGroups/eshopcleverrg/providers/Microsoft.Chaos/experiments/eshoppodfailure/start?api-version=2024-01-01"
If you prefer to do everything at once (after successful init):
terraform plan -out=all-chaos.tfplan
terraform apply all-chaos.tfplan
This will create ALL chaos resources in one go, but the step-by-step approach above is safer for troubleshooting.