Adding additional enums for EC2 instance size metadata #24479
johncmunson
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There's an enum called
InstanceSize
that is used to instantiate EC2 instances.For example...
However, it would be helpful to also have access to additional properties such as vCPU and Memory.
For a real-world use case of why this might be useful, consider Cloudwatch alarms. You might want to follow a best practice by making the alarm threshold a function of the total available memory.
Currently, I would need to manually create my own enum for something like this, or just use a hardcoded value when creating the alarm, but it would be really nice if the cdk library just provided this.
Beta Was this translation helpful? Give feedback.
All reactions