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

(aws-eks): instanceType is deprecated, use instanceTypes instead

Open bora-7 opened this issue 4 years ago • 5 comments

Describe the bug

There are some integ tests in aws-eks using the deprecated instanceType instead of the instanceTypes and yarn test throws a lot of warnings.

Expected Behavior

No more warnings for deprecated 'instanceType' properties from 'yarn test'

Current Behavior

There are warning signs since instanceType is now deprecated and instanceTypes should be used instead

Reproduction Steps

yarn test on aws-eks

Possible Solution

Change mentions of instanceType to 'instanceTypes'

CDK CLI Version

2.44.0

Node.js Version

v16.13.2

OS

MacOS

Language

Typescript

bora-7 avatar Oct 18 '22 19:10 bora-7

Working on it

MrSyn88 avatar Oct 18 '22 19:10 MrSyn88

What's the bug you're describing exactly? We deprecated this prop two years ago, so you should only be able to use instanceType in v1, and if you do so in v1 you should see this warning message because we want to throw warnings when properties are deprecated.

peterwoodworth avatar Oct 18 '22 19:10 peterwoodworth

I've updated the description now to make it more clear

bora-7 avatar Oct 18 '22 20:10 bora-7

Thanks @bora-7! Let us know once you've submitted a PR

peterwoodworth avatar Oct 18 '22 21:10 peterwoodworth

⚠️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 Oct 20 '22 23:10 github-actions[bot]