baked in cloud formation template
parent
2e971d93a4
commit
1ff1597a05
|
|
@ -1056,9 +1056,11 @@ class AWSJobStack {
|
||||||
const cpu = cloud_runner_1.default.buildParameters.cloudRunnerCpu || '1024';
|
const cpu = cloud_runner_1.default.buildParameters.cloudRunnerCpu || '1024';
|
||||||
const memory = cloud_runner_1.default.buildParameters.cloudRunnerMemory || '2048';
|
const memory = cloud_runner_1.default.buildParameters.cloudRunnerMemory || '2048';
|
||||||
taskDefCloudFormation = taskDefCloudFormation.replace(`ContainerCpu:
|
taskDefCloudFormation = taskDefCloudFormation.replace(`ContainerCpu:
|
||||||
Default: 1024`, cpu);
|
Default: 1024`, `ContainerCpu:
|
||||||
|
Default: ${cpu}`);
|
||||||
taskDefCloudFormation = taskDefCloudFormation.replace(`ContainerMemory:
|
taskDefCloudFormation = taskDefCloudFormation.replace(`ContainerMemory:
|
||||||
Default: 2048`, memory);
|
Default: 2048`, `ContainerMemory:
|
||||||
|
Default: ${memory}`);
|
||||||
for (const secret of secrets) {
|
for (const secret of secrets) {
|
||||||
secret.ParameterKey = `${buildGuid.replace(/[^\dA-Za-z]/g, '')}${secret.ParameterKey.replace(/[^\dA-Za-z]/g, '')}`;
|
secret.ParameterKey = `${buildGuid.replace(/[^\dA-Za-z]/g, '')}${secret.ParameterKey.replace(/[^\dA-Za-z]/g, '')}`;
|
||||||
if (typeof secret.ParameterValue == 'number') {
|
if (typeof secret.ParameterValue == 'number') {
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -29,12 +29,14 @@ export class AWSJobStack {
|
||||||
taskDefCloudFormation = taskDefCloudFormation.replace(
|
taskDefCloudFormation = taskDefCloudFormation.replace(
|
||||||
`ContainerCpu:
|
`ContainerCpu:
|
||||||
Default: 1024`,
|
Default: 1024`,
|
||||||
cpu,
|
`ContainerCpu:
|
||||||
|
Default: ${cpu}`,
|
||||||
);
|
);
|
||||||
taskDefCloudFormation = taskDefCloudFormation.replace(
|
taskDefCloudFormation = taskDefCloudFormation.replace(
|
||||||
`ContainerMemory:
|
`ContainerMemory:
|
||||||
Default: 2048`,
|
Default: 2048`,
|
||||||
memory,
|
`ContainerMemory:
|
||||||
|
Default: ${memory}`,
|
||||||
);
|
);
|
||||||
for (const secret of secrets) {
|
for (const secret of secrets) {
|
||||||
secret.ParameterKey = `${buildGuid.replace(/[^\dA-Za-z]/g, '')}${secret.ParameterKey.replace(
|
secret.ParameterKey = `${buildGuid.replace(/[^\dA-Za-z]/g, '')}${secret.ParameterKey.replace(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue