An open API service indexing awesome lists of open source software.

https://github.com/iancleary/ansible-s3-static-website

Ansible Playbook to deploy files/folders (static website) to an AWS s3 bucket
https://github.com/iancleary/ansible-s3-static-website

ansible ansible-playbook aws aws-cli aws-s3 bash localhost

Last synced: 2 months ago
JSON representation

Ansible Playbook to deploy files/folders (static website) to an AWS s3 bucket

Awesome Lists containing this project

README

          

# AWS S3 Static Website Deployment w/ localhost Ansible Playbook

Hi, my name is Ian Cleary.

Please use this code to help you deploy a static site to an AWS S3 bucket.

## Dependencies and Installation

------------

* [AWS CLI](http://docs.aws.amazon.com/cli/latest/userguide/installing.html)
* [Ansible](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html)

## Setup

------------
I used this ansible playbook to deploy my website to an AWS S3 Bucket using an ansible role described in [roles/deploy-website-s3/README.md](roles/deploy-website-s3/README.md). After configuring the ansible [playbook](main.yml), please execute it us the localhost ansible [deploy bash script](deploy.sh). Use [this bash script](check.sh) to check your ansible playbook.

## Comments

------------
I've only included the specific folders and root files to exclude costly requests to s3 for folders like node-modules and other development folders. The ansible tasks do not ignore folders in your .gitignore file.

## Attributions

* [Ansible playbook](https://github.com/dmitri-lerko/ansible-jekyll) for showing me how much simpler of a solution this is than using the s3 boto python interface, for this type of task.