Skip to content

integ-runner: Deploying to the wrong region and ignores --parallel-regions #942

@Abogical

Description

@Abogical

Describe the bug

The option --parallel-regions seem to be ignored when running the integ runner.

Regression Issue

  • Select this option if this issue appears to be a regression.

Last Known Working CDK Version

No response

Expected Behavior

Running integ runner with --parallel-regions REGION should deploy stack to REGION.

Current Behavior

Running integ runner with --parallel-regions REGION deploys stack to us-east-1. A workaround to this is to override with the AWS_REGION environment variable.

Reproduction Steps

AWS IVS is a service that is not supported by us-east-2. So integ tests for that region should fail.

$ cd aws-cdk
$ npx lerna run build --scope=@aws/aws-ivs-alpha
$ cd packages/@aws-cdk/aws-ivs-alpha/test
$ yarn run integ --force integ.ivs-multitrack-video.js --parallel-regions us-east-2 # This should fail
...
Running test /workplace/abdlrmn/aws-cdk2/packages/@aws-cdk/aws-ivs-alpha/test/integ.ivs-multitrack-video.js in us-east-2
  SUCCESS    integ.ivs-multitrack-video-aws-cdk-ivs-multitarck-video-test/DefaultTest 28.072s
...
$ # but it succeeds. Meanwhile if you force the region with an environment variable, it will fail.
$ AWS_REGION=us-east-2 yarn run integ --force integ.ivs-multitrack-video.js --parallel-regions us-east-2
...
Running test /workplace/abdlrmn/aws-cdk2/packages/@aws-cdk/aws-ivs-alpha/test/integ.ivs-multitrack-video.js in us-east-2
  FAILED     integ.ivs-multitrack-video-aws-cdk-ivs-multitarck-video-test/DefaultTest (undefined/us-east-2) 3.482s
      Integration test failed: ToolkitError: ❌  aws-cdk-ivs-multitarck-video failed: ValidationError: Template format error: Unrecognized resource types: [AWS::IVS::Channel]
...

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.1027.0

Framework Version

No response

Node.js Version

22.11.0

OS

Amazon Linux

Language

TypeScript

Language Version

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions