Giter Club home page Giter Club logo

git-hooks-awscli-s3's Introduction

git-hooks-AWSCLI-S3

Series of functional hooks to integrate GIT with AWS S3 via the AWS CLI and the AWS S3 CLI.

Requirements

  • AWS S3 Instance - A fully configured, Amazon Web Services Simple Storage System (S3) instance. More commonly, we would be using an AWS S3 instance that has been configured to host a static website with GIT based deployments. Static Hosting Guide
  • AWS Command Line Interface – The Amazon Web Services command line interface (CLI) available here
  • AWS IAM Role - A properly configured and permissioned IAM user account and role with access to secret/private keys. This can also be achieved with environmental variables and configuration settings, but AWS' IAM is the best practice for communicating across the AWSCLI. [AWS IAM] (http://aws.amazon.com/iam/)
  • GIT – If you're reading this, there's really no point in explaining this dependency. GIT is awesome. We love GIT.
  • UNIX/Bash Compatible Environment

Installation

Usage

From a local machine, triggered after each GIT Commit (as this hook is stored in .git/hooks/post-commit), the AWS CLI will connect to a specified S3 bucket via profile specific credentials to automate a secure, recursive copy protocol. This process will remove any remote files that do not currently exist on the local machine, with the exception of any files or expressions declared in the ignore statement. By default, we strictly ignore the .git object and all of its children.

git-hooks-awscli-s3's People

Contributors

mark-schaal avatar

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.