aws-cdk icon indicating copy to clipboard operation
aws-cdk copied to clipboard

(pipelines): upgrade to v2 results in pipelines no longer working

Open codernaive opened this issue 4 years ago • 3 comments

What is the problem?

Upgrade to v2 from v1 of cdk results in broken pipelines.

Reproduction Steps

from constructs import Construct from aws_cdk import App, Stack from aws_cdk import ( aws_codepipeline as cp, aws_codepipeline_actions as cpa, pipelines as pipelines, aws_sns as sns, aws_sns_subscriptions as subs, aws_events as events, aws_events_targets)

cloud_assembly_artifact = cp.Artifact() original_pipeline = pipelines.CdkPipeline(self, "Pipeline", self_mutating=False, cloud_assembly_artifact=cloud_assembly_artifact )

What did you expect to happen?

To work as it did prior to upgrade from v1

What actually happened?

AttributeError: module 'aws_cdk.pipelines' has no attribute 'CdkPipeline'

CDK CLI Version

2.3.0 (build beaa5b2)

Framework Version

No response

Node.js Version

v14.18.1

OS

Linux/Ubuntu 20.04

Language

Python

Language Version

3.8.10

Other information

No response

codernaive avatar Dec 24 '21 00:12 codernaive

The CdkPipeline class has been deprecated for about half a year now, replaced by the CodePipeline class.

Read a migration guide here: https://github.com/aws/aws-cdk/blob/master/packages/%40aws-cdk/pipelines/ORIGINAL_API.md

rix0rrr avatar Dec 24 '21 12:12 rix0rrr

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

github-actions[bot] avatar Dec 24 '21 12:12 github-actions[bot]

Update the docs. https://docs.aws.amazon.com/cdk/api/v2/python/aws_cdk.pipelines/README.html still shows CdkPipeline.

codernaive avatar Dec 24 '21 13:12 codernaive