Skip to content

Instantly share code, notes, and snippets.

@jahe
Created December 20, 2018 10:16
Show Gist options
  • Save jahe/e4c837877fae0dae2e8477def0a51292 to your computer and use it in GitHub Desktop.
Save jahe/e4c837877fae0dae2e8477def0a51292 to your computer and use it in GitHub Desktop.
AWS ECS Cheatsheet

Container Definition within Task Definition

memory and memoryReservation - The memory setting is a hard limit. If the containers memory usage hits this amount, the container will be terminated. If on the other hand, you specify memoryReservation, that much memory will be reserved for the task, but it can use more, up to the total amount of the machine. Only one of memory and memoryReservation are required. If both are used, memoryReservation should be less than memory. If you are only going to specify one of these, I'd recommend memoryReservation, as it will allow your task to use up to the total memory on the machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment