Package com.axemblr.provisionr.amazon.core

Examples of com.axemblr.provisionr.amazon.core.ImageTable


            final String imageId = (String) execution.getVariable(ProcessVariables.CACHED_IMAGE_ID);
            if (imageId != null) {
                return imageId;
            }

            ImageTable imageTable;
            try {
                imageTable = ImageTable.fromCsvResource("/com/axemblr/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 com.axemblr.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.