(aws-ec2): Expose instance properties on InstanceType #12022
Labels
@aws-cdk/aws-ec2
Related to Amazon Elastic Compute Cloud
effort/medium
Medium work item – several days of effort
feature/service-integration
Add functionality to an L2 construct to enable easier integration with another service
feature-request
A feature should be added or improved.
p2
There are many supporting properties unique to EC2 InstanceType. Some AWS supporting services are conditioned on these properties so they should be readily available to developers in the framework.
Use Case
The specific usecase I have in mind is Cloudwatch monitoring of SageMaker endpoints, from there:
This requires the manual process of looking up the relevant information for your current instance type on the web and hard-coding it in the CDK if you want to properly condition Cloudwatch alarms on these metrics. An ideal CX would be one where the developer doesn't need to leave CDK to get the information required.
Proposed Solution
There could be some static mapping or interface of various instance properties which are keyed on InstanceType. As a first step some of the properties from https://aws.amazon.com/ec2/instance-types/ could be incorporated with the intent to expand to all types + properties in the future.
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: