fleet/articles/deploy-fleet-on-aws-ecs.md
Mike Thomas 0be1ae5e19
Guides-update-archive-notice (#23319)
- Updated the archive notification.

Relates to https://github.com/fleetdm/fleet/issues/23283
2024-10-29 16:52:44 -05:00

2.3 KiB

Deploy Fleet on AWS ECS

Archived. While still usable, this guide has not been updated recently. See the Deploy Fleet docs for supported deployment methods.

Deploy Fleet on AWS ECS

Terraform reference architecture can be found here

Infrastructure dependencies

MySQL

In AWS we recommend running Aurora with MySQL Engine, see here for terraform details.

Redis

In AWS we recommend running ElastiCache (Redis Engine) see here for terraform details

Fleet server

Running Fleet in ECS consists of two main components the ECS Service & Load Balancer. In our example the ALB is handling TLS termination

Fleet migrations

Migrations in ECS can be achieved by running dedicated ECS tasks that run the fleet prepare --no-prompt=true db command. See terraform for more details

Alternatively you can bake the prepare command into the same task definition see here for a discussion, but this is not recommended for production environments.