Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 565 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 565 Bytes

FargateTaskSizeValidator

Validates CPU units and Memory for a fargate task, it makes sure the combination is supported by AWS.

Install

npm install fargatetasksizevalidator

Usage

Simply import the package and call the validateFargateCPUAndMemoryCombination function specifying CPU units and memory. true is returned if valid or an error is thrown if the combination is invalid.

import { validateFargateCPUAndMemoryCombination } from 'fargatetasksizevalidator';

validateFargateCPUAndMemoryCombination(cpuUnits, memory);