java - How do I give imageNameRegex an actual regular expression -


i'm trying use specific ami on aws using it's name.

it works if set imagenameregex = region/image_name fails if try of following:

imagenameregex = image_name imagenameregex = .*/image_name imagenameregex = .*image_name imagenameregex = /.*image_name/ 

the aim here can copy ami across number of regions , have brooklyn pick correct 1 without having specify specific image id region.

looking @ brooklyn tests shouldn't need regex - long name substring of full name should work.

i'm setting in brooklyn.properties not yaml though can't imagine makes difference.

jclouds restricts number of owners being queried more common ones have better response times. however, if want have more open query, can override default 1 setting jclouds.ec2.ami-query property when creating context. default, jclouds uses one:

owner-id=137112412989,801119661308,063491364108,099720109477,411009282317;state=available;image-type=machine


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -