mirror of
https://github.com/fleetdm/fleet
synced 2026-05-15 21:18:29 +00:00
| .. | ||
| docker | ||
| elasticsearch_ansible | ||
| state | ||
| .terraform-version | ||
| ecr.tf | ||
| ecs-iam.tf | ||
| ecs-sgs.tf | ||
| ecs.tf | ||
| elasticsearch.sh | ||
| elasticsearch.tf | ||
| firehose.tf | ||
| loadtesting.tf | ||
| locals.tf | ||
| main.tf | ||
| outputs.tf | ||
| r53.tf | ||
| rds.tf | ||
| readme.md | ||
| redis.tf | ||
| variables.tf | ||
| vpc.tf | ||
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
- Initialize your terraform environment with
terraform init - 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)"}"