@studion/infra-code-blocks
Version:
Studion common infra components
29 lines (28 loc) • 766 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.commonTags = exports.PredefinedSize = void 0;
const pulumi = require("@pulumi/pulumi");
const CPU_1_VCPU = 1024;
const MEMORY_1GB = 1024;
exports.PredefinedSize = {
small: {
cpu: CPU_1_VCPU / 4, // 0.25 vCPU
memory: MEMORY_1GB / 2, // 0.5 GB memory
},
medium: {
cpu: CPU_1_VCPU / 2, // 0.5 vCPU
memory: MEMORY_1GB, // 1 GB memory
},
large: {
cpu: CPU_1_VCPU, // 1 vCPU
memory: MEMORY_1GB * 2, // 2 GB memory
},
xlarge: {
cpu: CPU_1_VCPU * 2, // 2 vCPU
memory: MEMORY_1GB * 4, // 4 GB memory
},
};
exports.commonTags = {
Env: pulumi.getStack(),
Project: pulumi.getProject(),
};