Code Monkey home page Code Monkey logo

ec2tools's Introduction


ec2tools


Contents


Summary

Scripts for use with Amazon Web Services' Elastic Compute Cluster (EC2)

back to the top


Contents

Current Scripts contained in this version of ec2tools:

  • machineimage : Returns the most current Amazon Machine Image Id in a region

  • profileaccount : Profiles an AWS Account to precompile metadata in each region for use at a later time when provisioning EC2 instances. Account data is saved as a local file and contains regional data for:

    • Subnets
    • Security Groups
    • SSH Keypairs

back to the top


Getting Started

See the following resources before getting started:

back to the top


Dependencies

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "ec2:Describe*"
            ],
            "Resource": "*"
        }
    ]
 }

back to the top


Supported Operating Systems

Returns most current Amazon Machine Image ID for the following Operating System Types:

back to the top


Installation

Install ec2tools via pip:

$ pip install ec2tools --user

back to the top


Instructions

Example cli commands for machineimage script

::

Return Image for a Particular Region

Format: json (default)

    $ machineimage  --image redhat7.5  --region eu-west-1

redhat7


Return Image & Metadata for a Particular Region

Format: json

    $ machineimage  --image centos7  --region eu-west-1  --details

redhat7


Return the AMI Image Ids for All Regions

Format: json

    $ machineimage  --image amazonlinux1

aml1


Return the AMI Image Ids for All Regions

Format: text

    $ machineimage   --image amazonlinux2   --format text

aml1

back to the top


Help

To display the help menu:

    $ machineimage  --help

ec2tools help

back to the top


Author & Copyright

All works contained herein copyrighted via below author unless work is explicitly noted by an alternate author.

  • Copyright Blake Huber, All Rights Reserved.

back to the top


License

back to the top


Disclaimer

Code is provided "as is". No liability is assumed by either the code's originating author nor this repo's owner for their use at AWS or any other facility. Furthermore, running function code at AWS may incur monetary charges; in some cases, charges may be substantial. Charges are the sole responsibility of the account holder executing code obtained from this library.

Additional terms may be found in the complete license agreement.

back to the top


ec2tools's People

Contributors

fstab50 avatar

Watchers

 avatar

ec2tools's Issues

runmachine | Ability to quit during launch menu walk

At any of the launch menu prompts where the user is required to select a table entry, user should instead have ability to enter 'quit' to quit the menu, exiting the ec2 launch process entirely at any time.

USERDATA | Choose from local script files

when ---userdata option parameter given when runmachine is invoked, user should be prompted during launch menu walk with a table listing all userdata scripts found locally in ~/.config/ec2tools/userdata.

Table Columns: #, Script Name, Modified Date

Windows AMIs

return latest windows AMI's for Windows 12 and 16

README: Examples section

Syntax for launching ec2 from a bash shell script:

machineimage -i ubuntu16.04 --region us-east-2 --format text | awk '{print $2}'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.