Skip to content
This repository was archived by the owner on Jul 3, 2023. It is now read-only.

Question: Ubuntu vs Amazon linux for ECS nodes #105

Open
dbrandt opened this issue Mar 10, 2017 · 2 comments
Open

Question: Ubuntu vs Amazon linux for ECS nodes #105

dbrandt opened this issue Mar 10, 2017 · 2 comments

Comments

@dbrandt
Copy link

dbrandt commented Mar 10, 2017

What's the benefit to rolling your own ECS node AMIs over using what Amazon provides?

A few months ago I set up a couple of ASG-backed ECS clusters using Ubuntu 14.04 for the nodes. Things work OK, but a couple of things are wonky (for example, some data is missing in CloudWatch) which made me doubt my choice and make me consider using Amazons pre-made ECS AMIs going forward. I originally chose 14.04 for consistency with our existing stack and build environment, but that doesn't really matter for the containers...

@alani
Copy link

alani commented Mar 17, 2017

Haven't contributed to this repo (yet), however I can say baking your own AMI comes with several advantages i.e. maybe I want to install custom toolsets or improve hardening. Based on the AMI created with packer in this repo, here are some of the changes made by the Segment stack:

  • Utilize systemd and journald
  • Install additional packages from apt
  • Run specific containers on image start, e.g:
    • ecs-agent: run a specific version of the agent with custom config
    • ecs-logs: enables the log centralization feature. Reads from journald and sends logs to CloudWatch
  • Other changes on start such as potential cloud-init changes (didn't look too closely), log rotation, tcp/ip stack changes, and more.

@achille-roussel
Copy link
Contributor

I believe you could achieve those things with the ECS-optimized AMI from AWS, it's really just a matter of using the tool that fits your needs.

Stack defaults to using ubuntu because it's a popular distribution and you have a lot of learning material out there, but you can use any AMI you want with the stack modules.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants