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
- Host: GitHub
- URL: https://github.com/iancleary/ansible-s3-static-website
- Owner: iancleary
- License: gpl-3.0
- Created: 2019-09-08T18:03:52.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2020-06-19T05:38:53.000Z (about 6 years ago)
- Last Synced: 2025-03-29T07:29:23.778Z (over 1 year ago)
- Topics: ansible, ansible-playbook, aws, aws-cli, aws-s3, bash, localhost
- Language: Shell
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.