fleet/tools/loadtesting/terraform
2022-03-21 13:18:21 -04:00
..
docker Add new loadtesting infra and scaledown option to save costs (#4662) 2022-03-21 13:18:21 -04:00
elasticsearch_ansible Elastic is now managed through ansible for quicker config changes and more stability (#4243) 2022-02-18 11:07:32 -05:00
state Add terraform for the loadtesting environment (#4172) 2022-02-15 13:00:24 -05:00
.terraform-version Add terraform for the loadtesting environment (#4172) 2022-02-15 13:00:24 -05:00
ecr.tf Add new loadtesting infra and scaledown option to save costs (#4662) 2022-03-21 13:18:21 -04:00
ecs-iam.tf Add terraform for the loadtesting environment (#4172) 2022-02-15 13:00:24 -05:00
ecs-sgs.tf Add new loadtesting infra and scaledown option to save costs (#4662) 2022-03-21 13:18:21 -04:00
ecs.tf Add new loadtesting infra and scaledown option to save costs (#4662) 2022-03-21 13:18:21 -04:00
elasticsearch.sh Elastic is now managed through ansible for quicker config changes and more stability (#4243) 2022-02-18 11:07:32 -05:00
elasticsearch.tf Add new loadtesting infra and scaledown option to save costs (#4662) 2022-03-21 13:18:21 -04:00
firehose.tf Add terraform for the loadtesting environment (#4172) 2022-02-15 13:00:24 -05:00
loadtesting.tf Add new loadtesting infra and scaledown option to save costs (#4662) 2022-03-21 13:18:21 -04:00
locals.tf Add new loadtesting infra and scaledown option to save costs (#4662) 2022-03-21 13:18:21 -04:00
main.tf Elastic is now managed through ansible for quicker config changes and more stability (#4243) 2022-02-18 11:07:32 -05:00
outputs.tf Add terraform for the loadtesting environment (#4172) 2022-02-15 13:00:24 -05:00
r53.tf Add terraform for the loadtesting environment (#4172) 2022-02-15 13:00:24 -05:00
rds.tf Add new loadtesting infra and scaledown option to save costs (#4662) 2022-03-21 13:18:21 -04:00
readme.md Add terraform for the loadtesting environment (#4172) 2022-02-15 13:00:24 -05:00
redis.tf Add new loadtesting infra and scaledown option to save costs (#4662) 2022-03-21 13:18:21 -04:00
variables.tf Add new loadtesting infra and scaledown option to save costs (#4662) 2022-03-21 13:18:21 -04:00
vpc.tf Add terraform for the loadtesting environment (#4172) 2022-02-15 13:00:24 -05:00

Terraform for Loadtesting Environment

The interface into this code is designed to be minimal. If you require changes beyond whats described here, contact @zwinnerman-fleetdm.

Deploying your code to the loadtesting environment

  1. Initialize your terraform environment with terraform init
  2. Apply terraform with your branch name with terraform apply -var tag=BRANCH_NAME

Running migrations

After applying terraform with the commands above: aws ecs run-task --region us-east-2 --cluster fleet-backend --task-definition fleet-migrate:"$(terraform output -raw fleet_migration_revision)" --launch-type FARGATE --network-configuration "awsvpcConfiguration={subnets="$(terraform output -raw fleet_migration_subnets)",securityGroups="$(terraform output -raw fleet_migration_security_groups)"}"