Open5

QUEUED実行タイプのCodePipelinev2の機能フラグが有効でCDKデプロイも成功するのにtestで警告が出る

hirenhiren
QUEUED execution mode can only be used with V2 pipelines, `PipelineType.V2` must be specified for `pipelineType`
hirenhiren

デプロイOK
テストOK

test-stack.ts
    const codePipeline = new codepipeline.Pipeline(this, 'Pipeline', {
      executionMode: codepipeline.ExecutionMode.QUEUED,
      pipelineType: codepipeline.PipelineType.V2,
    });

デプロイOK
テストNG

test-stack.ts
    const codePipeline = new codepipeline.Pipeline(this, 'Pipeline', {
      executionMode: codepipeline.ExecutionMode.QUEUED,
//      pipelineType: codepipeline.PipelineType.V2,
    });
hirenhiren
test.ts
test('snapshot test', () => {
  const app = new cdk.App();
  const testStack = new TestStack(app, 'TestStack');
  const template = Template.fromStack(testStack);
  expect(template).toMatchSnapshot();
});