Workshop code is not matching import statements generated by CDK v2
Opened this issue · 0 comments
evgenyka commented
Describe the bug
The code in CDK workshop is outdated and not matching the latest CDK.
Expected Behavior
The updated import statements are:
import { Duration, Stack, StackProps } from 'aws-cdk-lib';
import * as sns from 'aws-cdk-lib/aws-sns';
import * as subs from 'aws-cdk-lib/aws-sns-subscriptions';
import * as sqs from 'aws-cdk-lib/aws-sqs';
import { Construct } from 'constructs';
Current Behavior
The code in CDK workshop is outdated and not matching the latest CDK.
Reproduction Steps
Go to Project Structure page.
Find The main stack.
The import statements are:
import * as cdk from 'aws-cdk-lib';
import * as sns from 'aws-cdk-lib/aws-sns';
import * as subs from 'aws-cdk-lib/aws-sns-subscriptions';
import * as sqs from 'aws-cdk-lib/aws-sqs';
Possible Solution
Update the code in the Workshop to match the latest CDK version generated code.
Additional Information/Context
No response
CDK CLI Version
No response
Section
No response
Browser
No response
Language
TypeScript