Giter VIP home page Giter VIP logo

aws-helper-scripts's People

Contributors

reelsense avatar

Stargazers

 avatar

Watchers

 avatar  avatar

aws-helper-scripts's Issues

Feature - volume tags

The original script had volume tagging.

# Tag this EBS volume
echo "Adding tags to the EBS volume..."
INSTANCE_NAME=$(ec2-describe-tags --filter "resource-id=$INSTANCE_ID" --filter "key=Name" | cut -f5)
ec2-create-tags $VOLUME_ID --tag "Server=$INSTANCE_NAME" --tag "Mount point=$MOUNT_POINT"
echo

Feature - auto mount

The original version of this script had an auto option that would find an unused device name automatically, vs. needing to specify the device path.

Here is the original code: # If the user specified auto we locate the next avaliable device location

# If the user specified auto we locate the next avaliable device location
if [ $DEVICE = "auto" ]; then
if ls /dev/xvdk* >/dev/null 2>&1; then
LAST_DEVICE_NUMBER=$(ls -1 /dev/xvdk* | sed 's/[a-z\/]//g' | sort -n | tail -1)
DEVICE_NUMBER=$(expr $LAST_DEVICE_NUMBER + 1)
else
DEVICE_NUMBER="1"
fi
fi

Specify PATH?

Should there be a PATH variable to ensure that /usr/bin/aws gets executed vs. a potential conflict with a users custom binary in /usr/local/bin/aws.

Add the ability to automate Volume Snapshots

#TODO: Add the ability to automate Volume Snapshots
# # Add cron entry to perform EBS Snapshots of this Volume
# echo "Adding cron entry for ec2-consistent-snapshot to '/etc/cron.d/snapshot-ebs'..."
# echo "42 * * * * root bash -c '((i-snapshot-volume $MOUNT_POINT mysql true \"automated backup\" 2>&1 1>&3 | tee >(logger -p cron.err -t \"i-snapshot-volume $MOUNT_POINT\")) 3>&1 1>&2) > >(logger -p cron.info -t \"i-snapshot-volume $MOUNT_POINT\") 2>&1'" >> /etc/cron.d/snapshot-ebs
# echo


This issue was generated by todo based on a TODO comment in 4d106f5. It's been assigned to @reelsense because they committed the code.

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.