-
Notifications
You must be signed in to change notification settings - Fork 4k
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
AMI environmental context provider #1417
Comments
Can you elaborate a little bit about what you mean, or provide a sketch of how would you expect the API to look like from a user's point of view? |
I feel like I don't have a good enough understanding of the canonical way of using the CDK or its long-term vision so I don't feel like I can make a good API suggestion. Let me present the use case instead.
|
@ggoodman thanks, very helpful. Can you provide an example for a |
I'm interested in such a feature, though the implementation details/design may be different. Here's a user story: As a user, I want to be able to determine at runtime which AMI to use for an EC2 instance or Auto Scaling Group, based on a set of predicate attributes I provide; and if multiple images are returned that match the predicate, use the latest one. It'd be useful to look at Terraform's AMI data source for inspiration. |
Sounds that this will exactly fit our environmental context provider model. |
@eladb Sounds good to me, but I didn't see an AMI provider yet. Should we make this the issue requesting one be made? |
Looks like this issue is good enough! |
Shall we rename it? I don't have the privileges to do so. |
This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
During execution, I would like to be able to perform an
ec2.describeImages()
operation in the context of the privileges available to my CDK App. I would use the resulting image list to seed the image map in anAutoScaleGroup
.The text was updated successfully, but these errors were encountered: