CrossClj

0.1.1 docs

SourceDocs



RECENT

    aws-instance-types

    Clojars

    Jul 31, 2015


    OWNER
    PalletOps
    contact@palletops.com
    palletops.com

    Readme

    Index of all namespaces


    « Project + dependencies

    AWS Instance Type Data

    The README below is fetched from the published project artifact. Some relative links may be broken.

    aws-instance-types

    Static data about AWS Instance Types.

    The data is maintained in an EDN file. JSON and YAML are generated from this file.

    If you want dynamic pricing data, there are several libraries available, such as amazon-pricing.

    Usage

    To use the EDN data, add a dependency on [com.palletops/aws-instance-types "0.1.1"], which will use the published jar which is on clojars. The data is available as a resource at com/palletops/aws=instance-types.edn, and can be loaded with:

    (-> "com/palletops/aws-instance-types.edn"
        io/resource
        io/reader
        load-reader)
    

    To use the JSON data, install the aws-instance-types package with npm, e.g. npm install aws-instance-types. The data is returned by the package’s instanceTypes function.

    var awsInstanceTypes = require('aws-instance-types');
    
    var output = awsInstanceTypes.instanceTypes();
    console.log(output);
    

    License

    Copyright © 2015 Hugo Duncan

    Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.