About
A helper library written in TypeScript to support AWS CDK development i.e. building ECS Task Definition. It will suggest the minimum/maximum CPU (vCPU) based on memory/RAM needed to run an ECS task.
Repositories
- NPM: https://www.npmjs.com/package/fargate-cpu-picker
- GitHub: https://github.com/zulhfreelancer/fargate-cpu-picker
Setup
You may need to add DOM
to the lib
section in your tsconfig.json file like so:
Usage
; // Return minimum vCPU supported for 0.5GB memory; // 256 // Without second parameter, it will fallback to minimum too; // 256 // Return maximum vCPU supported for 2GB memory; // 1024
Previous Releases
If you need to refer at specific version of this package, it's available here. They were created using np (it's cool - you should check it out).
Contribute
Feel free to fork and submit PRs for this project. I'm more than happy to review and merge it. If you have any questions regarding contributing, feel free to reach out to me on Twitter.