mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
- Updated the archive notification. Relates to https://github.com/fleetdm/fleet/issues/23283
37 lines
No EOL
2.3 KiB
Markdown
37 lines
No EOL
2.3 KiB
Markdown
# Deploy Fleet on AWS ECS
|
|
|
|
> **Archived.** While still usable, this guide has not been updated recently. See the [Deploy Fleet](https://fleetdm.com/docs/deploy/deploy-fleet) docs for supported deployment methods.
|
|
|
|
|
|

|
|
|
|
Terraform reference architecture can be found [here](https://github.com/fleetdm/fleet/tree/main/infrastructure/dogfood/terraform/aws)
|
|
|
|
### Infrastructure dependencies
|
|
|
|
#### MySQL
|
|
|
|
In AWS we recommend running Aurora with MySQL Engine, see [here for terraform details](https://github.com/fleetdm/fleet/blob/main/infrastructure/dogfood/terraform/aws/rds.tf#L64).
|
|
|
|
#### Redis
|
|
|
|
In AWS we recommend running ElastiCache (Redis Engine) see [here for terraform details](https://github.com/fleetdm/fleet/blob/main/infrastructure/dogfood/terraform/aws/redis.tf#L13)
|
|
|
|
#### Fleet server
|
|
|
|
Running Fleet in ECS consists of two main components the [ECS Service](https://github.com/fleetdm/fleet/blob/main/infrastructure/dogfood/terraform/aws/ecs.tf#L84) & [Load Balancer](https://github.com/fleetdm/fleet/blob/main/infrastructure/dogfood/terraform/aws/ecs.tf#L59). In our example the ALB is [handling TLS termination](https://github.com/fleetdm/fleet/blob/main/infrastructure/dogfood/terraform/aws/ecs.tf#L46)
|
|
|
|
#### Fleet migrations
|
|
|
|
Migrations in ECS can be achieved by running [dedicated ECS tasks](https://github.com/fleetdm/fleet/tree/main/infrastructure/dogfood/terraform/aws#migrating-the-db) that run the `fleet prepare --no-prompt=true db` command. See [terraform for more details](https://github.com/fleetdm/fleet/blob/main/infrastructure/dogfood/terraform/aws/ecs.tf#L261)
|
|
|
|
Alternatively you can bake the prepare command into the same task definition see [here for a discussion](https://github.com/fleetdm/fleet/pull/1761#discussion_r697599457), but this is not recommended for production environments.
|
|
|
|
|
|
<meta name="articleTitle" value="Deploy Fleet on AWS ECS">
|
|
<meta name="authorGitHubUsername" value="edwardsb">
|
|
<meta name="authorFullName" value="Ben Edwards">
|
|
<meta name="publishedOn" value="2021-10-06">
|
|
<meta name="category" value="guides">
|
|
<meta name="articleImageUrl" value="../website/assets/images/articles/deploy-fleet-on-aws-ecs-800x450@2x.png">
|
|
<meta name="description" value="Information for deploying Fleet on AWS ECS."> |