diff --git a/packages/aws-cdk/lib/cli/cli-config.ts b/packages/aws-cdk/lib/cli/cli-config.ts index 162b6eca5..6a0b33d27 100644 --- a/packages/aws-cdk/lib/cli/cli-config.ts +++ b/packages/aws-cdk/lib/cli/cli-config.ts @@ -311,15 +311,15 @@ export async function makeConfig(): Promise { 'and falls back to a full deployment if that is not possible.', }, 'hotswap-ecs-minimum-healthy-percent': { - type: 'string', + type: 'number', desc: 'Lower limit on the number of your service\'s tasks that must remain in the RUNNING state during a deployment, as a percentage of the desiredCount', }, 'hotswap-ecs-maximum-healthy-percent': { - type: 'string', + type: 'number', desc: 'Upper limit on the number of your service\'s tasks that are allowed in the RUNNING or PENDING state during a deployment, as a percentage of the desiredCount', }, 'hotswap-ecs-stabilization-timeout-seconds': { - type: 'string', + type: 'number', desc: 'Number of seconds to wait for a single service to reach stable state, where the desiredCount is equal to the runningCount', }, 'logs': { diff --git a/packages/aws-cdk/lib/cli/cli-type-registry.json b/packages/aws-cdk/lib/cli/cli-type-registry.json index db494fc7e..d6d787308 100644 --- a/packages/aws-cdk/lib/cli/cli-type-registry.json +++ b/packages/aws-cdk/lib/cli/cli-type-registry.json @@ -518,15 +518,15 @@ "desc": "Attempts to perform a 'hotswap' deployment, which skips CloudFormation and updates the resources directly, and falls back to a full deployment if that is not possible. Do not use this in production environments" }, "hotswap-ecs-minimum-healthy-percent": { - "type": "string", + "type": "number", "desc": "Lower limit on the number of your service's tasks that must remain in the RUNNING state during a deployment, as a percentage of the desiredCount" }, "hotswap-ecs-maximum-healthy-percent": { - "type": "string", + "type": "number", "desc": "Upper limit on the number of your service's tasks that are allowed in the RUNNING or PENDING state during a deployment, as a percentage of the desiredCount" }, "hotswap-ecs-stabilization-timeout-seconds": { - "type": "string", + "type": "number", "desc": "Number of seconds to wait for a single service to reach stable state, where the desiredCount is equal to the runningCount" }, "watch": { diff --git a/packages/aws-cdk/lib/cli/parse-command-line-arguments.ts b/packages/aws-cdk/lib/cli/parse-command-line-arguments.ts index 91c73b50f..c0d01a33e 100644 --- a/packages/aws-cdk/lib/cli/parse-command-line-arguments.ts +++ b/packages/aws-cdk/lib/cli/parse-command-line-arguments.ts @@ -550,17 +550,17 @@ export function parseCommandLineArguments(args: Array): any { }) .option('hotswap-ecs-minimum-healthy-percent', { default: undefined, - type: 'string', + type: 'number', desc: "Lower limit on the number of your service's tasks that must remain in the RUNNING state during a deployment, as a percentage of the desiredCount", }) .option('hotswap-ecs-maximum-healthy-percent', { default: undefined, - type: 'string', + type: 'number', desc: "Upper limit on the number of your service's tasks that are allowed in the RUNNING or PENDING state during a deployment, as a percentage of the desiredCount", }) .option('hotswap-ecs-stabilization-timeout-seconds', { default: undefined, - type: 'string', + type: 'number', desc: 'Number of seconds to wait for a single service to reach stable state, where the desiredCount is equal to the runningCount', }) .option('watch', { @@ -729,17 +729,17 @@ export function parseCommandLineArguments(args: Array): any { }) .option('hotswap-ecs-minimum-healthy-percent', { default: undefined, - type: 'string', + type: 'number', desc: "Lower limit on the number of your service's tasks that must remain in the RUNNING state during a deployment, as a percentage of the desiredCount", }) .option('hotswap-ecs-maximum-healthy-percent', { default: undefined, - type: 'string', + type: 'number', desc: "Upper limit on the number of your service's tasks that are allowed in the RUNNING or PENDING state during a deployment, as a percentage of the desiredCount", }) .option('hotswap-ecs-stabilization-timeout-seconds', { default: undefined, - type: 'string', + type: 'number', desc: 'Number of seconds to wait for a single service to reach stable state, where the desiredCount is equal to the runningCount', }) .option('logs', {