Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: flag previous generation instance types #20422

Closed
wants to merge 1 commit into from

Conversation

PatMyron
Copy link
Contributor

@PatMyron PatMyron commented May 19, 2022

https://aws.amazon.com/ec2/previous-generation/
https://instancetyp.es/

related: aws-cloudformation/cfn-lint#2267

updating some of these values for existing resources causes interruptions

ec2-unit-prices


All Submissions:

New Features

  • Have you added the new feature to an integration test?
    • Did you use yarn integ to deploy the infrastructure and generate the snapshot (i.e. yarn integ without --dry-run)?

@gitpod-io
Copy link

gitpod-io bot commented May 19, 2022

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: 7ee89b7
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

Copy link
Contributor

@corymhall corymhall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should just add the message without @deprecated. These instance types are not actually deprecated, you can still create instances with these instance classes and I don't know of any plan to remove that ability.

If we ever release a CDK v3 these would get removed.

@PatMyron
Copy link
Contributor Author

PatMyron commented May 24, 2022

you can still create instances with these instance classes and I don't know of any plan to remove that ability

true for the oldest ~half of AWS regions, but the newest ~half of AWS regions (since 2016) and all AWS regions going forward do not support c3/m3/r3 instance type families

If we ever release a CDK v3 these would get removed

Is it not possible to leave values deprecated in future major versions as well? There are other @deprecated values that would need to be kept like Lambda runtime values that cannot be created or updated but can still exist in existing stacks:
#19938

@PatMyron PatMyron requested a review from corymhall May 28, 2022 06:39
@TheRealAmazonKendra TheRealAmazonKendra changed the base branch from v1-main to main June 2, 2022 09:16
@TheRealAmazonKendra
Copy link
Contributor

The link your posted specifically calls out that they're continuing to support older instance types.

AWS offers Previous Generation Instances for users who have optimized their applications around these instances and have yet to upgrade. Previous Generation Instances are still fully supported and retain the same features and functionality. Previous Generation Instances are available through the AWS Management Console, AWS CLI, and EC2 API tools.

Given that, I don't think we should mark these as deprecated. While ~half of the regions don't support the older ones, that's still ~half that do. I would support adding a warning and adding documentation that says they're older generations, but not deprecating them altogether at this point.

@PatMyron
Copy link
Contributor Author

I would support adding a warning

Is there another annotation to do that visibly other than @deprecated? Enabled editing my branch by maintainers, so feel free to switch / drop annotations as desired to merge 👍

@TheRealAmazonKendra
Copy link
Contributor

This PR has been deemed to be abandoned, and will be automatically closed. Please create a new PR for these changes if you think this decision has been made in error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants