https://pulumi.com logo
#general
Title
# general
q

quick-action-34599

10/26/2018, 2:49 PM
It looks like
c5.large
is not being allowed as an EC2 instance type
w

white-balloon-205

10/26/2018, 2:51 PM
Probably needs to be added to the enumeration in
@pulumi/aws
. You can still use it in the meantime, but would need to cast. Something like
<any>”c5.large”
. Cc @stocky-spoon-28903 who has been working on updating some of these enums recently.
s

stocky-spoon-28903

10/26/2018, 2:52 PM
Yes, I don’t know of a machine readable source for that so this is manually managed right now. I’ll open a PR shortly
q

quick-action-34599

10/26/2018, 2:56 PM
s

stocky-spoon-28903

10/26/2018, 2:58 PM
Sounds like a job for a lambda function to open a PR periodically ;-)
☝️ 1
q

quick-action-34599

10/26/2018, 2:58 PM
indeed!
curl <https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AmazonEC2/current/index.json> | jq -r '.products | map(.attributes.instanceType) | unique | map(select(. != null))'
💯 2
c

chilly-crayon-57653

10/30/2018, 5:37 PM