Whirr
  1. Whirr
  2. WHIRR-428

Always match a stable Canonical AMI on AWS EC2

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.8.0
    • Component/s: core
    • Labels:
      None

      Description

      Adrian posted on jclouds-dev@ an improvement to the template selection mechanism:

      "For those of you using aws-ec2, here's a handy template expression
      that will match the latest stable image from canonical. I've placed
      comments where explanation is likely necessary.

      Template template = context.getComputeService().templateBuilder()
      // need to select versions with double-digits so that lexicographic
      // doesn't end up prefering 9.x vs 11.x
      .osVersionMatches("1[012].[10][04]")
      // negative lookahead for daily and testing, but ensure match
      // ubuntu-images
      // http://www.regular-expressions.info/lookaround.html
      .imageDescriptionMatches("^(?!.(daily|testing)).*ubuntu-images.$")
      .osFamily(OsFamily.UBUNTU).build();

      Hope this helps!"

      1. WHRIR-428.diff.txt
        0.8 kB
        Andrew Bayer

        Activity

        Andrei Savu created issue -
        Andrei Savu made changes -
        Field Original Value New Value
        Summary Always match a stable Canonical AMI fron EC2 Always match a stable Canonical AMI on AWS EC2
        Andrew Bayer made changes -
        Attachment WHRIR-428.diff.txt [ 12535765 ]
        Andrew Bayer made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Tom White made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Assignee Andrew Bayer [ abayer ]
        Fix Version/s 0.8.0-alpha.1 [ 12318880 ]
        Resolution Fixed [ 1 ]
        Tom White made changes -
        Fix Version/s 0.8.0 [ 12321649 ]
        Fix Version/s 0.8.0-alpha.1 [ 12318880 ]

          People

          • Assignee:
            Andrew Bayer
            Reporter:
            Andrei Savu
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development