aws / aws-cdk

The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
https://aws.amazon.com/cdk
Apache License 2.0
11.62k stars 3.91k forks source link

Synthetics Canary - CDK2 #20145

Closed nomadme closed 2 years ago

nomadme commented 2 years ago

Describe the bug

There is not Canary class in Synthetics in CDK2, and it looks like it was removed in the CDK2.

Can someone from the team provide migration guidance from CDK1 to CDK2 for the Canary implementation?

Expected Behavior

Canary class should be available in CDK2

Current Behavior

Canary class is removed from the CDK2

Reproduction Steps

Use CDK2

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.20.0

Framework Version

No response

Node.js Version

16.10

OS

Mac

Language

Typescript

Language Version

No response

Other information

No response

kaizencc commented 2 years ago

Hi @nomadme! The structural change of cdk v1 versus v2 is that experimental modules are pulled out into their own separate packages. synthetics is an experimental module, so its v2 version lives as @aws-cdk/aws-synthetics-alpha.

I suggest you read our migration guide for more details and code snippets on how to add these experimental modules to your project.

github-actions[bot] commented 2 years ago

⚠️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.