ec2 cloud.py relies on streams rather than querying the cloud
Closed this issue · 3 comments
j5awry commented
EC2._find_image
utilizes streams files. There is a strong preference from the Public Cloud team for users to utilize the in-cloud references to find images. This is publicly documented for ec2:
https://ubuntu.com/server/docs/cloud-images/amazon-ec2
This should be achievable using botocore:SSM.Client.get_parameters(name=$FORMATTED_NAME)
. The SSM client configuration can be done using the same client configuration as the EC2 boto client (region, auth, etc).
This also makes integration with restricted regions or marketplace easier in the future cases (premium Ubuntu images are not contained in streams)
TheRealFalcon commented
As of efcdf6 EC2._find_image
is actually dead code. Streams is only used for LXD these days.
TheRealFalcon commented