pull/531/head
Frostebite 2023-03-30 23:45:01 +01:00
parent 7474886ccc
commit 03435c56d8
3 changed files with 21 additions and 11 deletions

20
dist/index.js generated vendored
View File

@ -2555,17 +2555,19 @@ Resources:
/***/ }), /***/ }),
/***/ 97647: /***/ 97647:
/***/ ((__unused_webpack_module, exports) => { /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict"; "use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.TaskDefinitionFormation = void 0; exports.TaskDefinitionFormation = void 0;
const cloud_runner_1 = __importDefault(__nccwpck_require__(79144));
class TaskDefinitionFormation { class TaskDefinitionFormation {
} static get formation() {
exports.TaskDefinitionFormation = TaskDefinitionFormation; return `AWSTemplateFormatVersion: 2010-09-09
TaskDefinitionFormation.description = `Game CI Cloud Runner Task Stack`;
TaskDefinitionFormation.formation = `AWSTemplateFormatVersion: 2010-09-09
Description: ${TaskDefinitionFormation.description} Description: ${TaskDefinitionFormation.description}
Parameters: Parameters:
EnvironmentName: EnvironmentName:
@ -2591,11 +2593,11 @@ Parameters:
Default: 80 Default: 80
Description: What port number the application inside the docker container is binding to Description: What port number the application inside the docker container is binding to
ContainerCpu: ContainerCpu:
Default: 1024 Default: ${cloud_runner_1.default.buildParameters.containerCpu}
Type: Number Type: Number
Description: How much CPU to give the container. 1024 is 1 CPU Description: How much CPU to give the container. 1024 is 1 CPU
ContainerMemory: ContainerMemory:
Default: 4096 Default: ${cloud_runner_1.default.buildParameters.containerMemory}
Type: Number Type: Number
Description: How much memory in megabytes to give the container Description: How much memory in megabytes to give the container
BUILDGUID: BUILDGUID:
@ -2700,6 +2702,10 @@ Resources:
DependsOn: DependsOn:
- LogGroup - LogGroup
`; `;
}
}
exports.TaskDefinitionFormation = TaskDefinitionFormation;
TaskDefinitionFormation.description = `Game CI Cloud Runner Task Stack`;
TaskDefinitionFormation.streamLogs = ` TaskDefinitionFormation.streamLogs = `
SubscriptionFilter: SubscriptionFilter:
Type: 'AWS::Logs::SubscriptionFilter' Type: 'AWS::Logs::SubscriptionFilter'

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,9 @@
import CloudRunner from '../../../cloud-runner';
export class TaskDefinitionFormation { export class TaskDefinitionFormation {
public static readonly description: string = `Game CI Cloud Runner Task Stack`; public static readonly description: string = `Game CI Cloud Runner Task Stack`;
public static readonly formation: string = `AWSTemplateFormatVersion: 2010-09-09 public static get formation(): string {
return `AWSTemplateFormatVersion: 2010-09-09
Description: ${TaskDefinitionFormation.description} Description: ${TaskDefinitionFormation.description}
Parameters: Parameters:
EnvironmentName: EnvironmentName:
@ -26,11 +29,11 @@ Parameters:
Default: 80 Default: 80
Description: What port number the application inside the docker container is binding to Description: What port number the application inside the docker container is binding to
ContainerCpu: ContainerCpu:
Default: 1024 Default: ${CloudRunner.buildParameters.containerCpu}
Type: Number Type: Number
Description: How much CPU to give the container. 1024 is 1 CPU Description: How much CPU to give the container. 1024 is 1 CPU
ContainerMemory: ContainerMemory:
Default: 4096 Default: ${CloudRunner.buildParameters.containerMemory}
Type: Number Type: Number
Description: How much memory in megabytes to give the container Description: How much memory in megabytes to give the container
BUILDGUID: BUILDGUID:
@ -135,6 +138,7 @@ Resources:
DependsOn: DependsOn:
- LogGroup - LogGroup
`; `;
}
public static streamLogs = ` public static streamLogs = `
SubscriptionFilter: SubscriptionFilter:
Type: 'AWS::Logs::SubscriptionFilter' Type: 'AWS::Logs::SubscriptionFilter'