Package org.apache.provisionr.amazon.core

Examples of org.apache.provisionr.amazon.core.ImageTable


        final String imageId = pool.getSoftware().getImageId();
        if (!Strings.isNullOrEmpty(imageId)) {
            return "default".equals(imageId) ? DEFAULT_AMI_ID : imageId;
        }

        ImageTable imageTable;
        try {
            imageTable = ImageTable.fromCsvResource("/org/apache/provisionr/amazon/ubuntu.csv");
        } catch (IOException e) {
            throw Throwables.propagate(e);
        }

        final String region = provider.getOptionOr(ProviderOptions.REGION, ProviderOptions.DEFAULT_REGION);
        final String version = provider.getOptionOr(SoftwareOptions.BASE_OPERATING_SYSTEM_VERSION,
            SoftwareOptions.DEFAULT_BASE_OPERATING_SYSTEM_VERSION);

        ImageTableQuery query = imageTable.query()
            .filterBy("region", region)
            .filterBy("version", version)
            .filterBy("arch", DEFAULT_ARCH);

        if (instanceType.equals("t1.micro")) {
View Full Code Here

TOP

Related Classes of org.apache.provisionr.amazon.core.ImageTable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.